Hello all, Django newbie here so sorry for any mistargeted questions!
I am building an app for handling user orders and I would like to track each user's add item request, pretty much like an 'add product to cart' functionality. At the moment I have a detail view where there is the option of adding the item to the order via a button. Initially I tried connecting the button to an AJAX get request to some url (like items/whatever/add) with the hope to execute a view that stores the user's choice in the session data. However, my main problem is that django responds to this request with a response "forcing" the browser to open up a new tab and display the response - I do not wish any change in the current page the user is wathcing. In more general terms is there a way to call remote api in order to do something without changing browsers current display? Thank you in advance! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD5ymB7gp963Y_9veX%3D9wmmdPnc-jSc-mgry5yykK4Ki4NG5cA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.