This is for a e-shop project. When the shopper add a product to shopping cart (submit a form), I want the shopper to stay in the original page. One approach I used before is I submit a form to an action page at a new window. And display the notes such as "You have added PS3 to your shopping cart." in the new window. And this new window will self close in 10 seconds if the shopper not close it.
My question is
1) now many people set up their browsers to block pop up windows. This "send form to an action page at a new window" will be blocked as pop up windows, right?
2) Is there a way, that I can "send form to an action page at a new window" but not be blocked by pop up windows blockers?
3) Another solution is that I don't use new window, send the action to a php page, and after the action, redirect the shopper back to the previous page, and when I redirect the shopper back to the previous page, I will attach a message such as "you have added PS3 to your shopping cart!". And this message will be displayed in the previous page.
What is your solution in the similiar case?
Thanks!