I'm trying to add this functionality to my PHP cart
Let's suppose we have two pages: catalog.php and cart.php
What I would like to do is:
User clicks on "Add to cart" button on catalog.php and triggers an ajax request via jQuery to cart.php sending it info about which product was added (this all works as expected) and makes the cart.php page update itself by including the just added product without a page refresh (this is the part I can't get to work).
If I put the two pages side by side and click "Add to cart" nothing happens, only on page refresh (cart.php) I see that the new product was added.
Is there a way to archieve this?
EDIT: I wasn't clear enough i'm sorry my bad The pages are presented in a standard way, no frames no popups The "app" works as expected and this will unlikely be an issue for users The "side-by-side" thing was just because i would like to know a way to obtain this functionality since i can see myself using it in the future for pretty much anything (DOM manipulation of pageB from pageA, CSS, etc.)