Right now I'm doing the following to post to a shopping cart for paypal:
p= new LoadVars();
p.send("https://www.paypal.com/cgi-bin/webscr", "paypal", POST);
and the way it works is paypal wants their window to stay open all the time, because every time I add something to the cart and click "continue shopping" it simply sets the focus to the parent page.
I figured the send() would send the post data to the "paypal" window, as specified in the function arguments, but instead it appears as though it tests to see if the window is open, and if it is, it doesn't do anything....
If I close the paypal window and use the flash function to add another item it works perfectly, but not everyone going to the site knows this.
Is there anyway to have 2 windows open and have the flash window post into another window?
[flash animation with 'add to cart' button submitting to "bar"]
[paypal site waiting to receive more items to be purchased by "foo"]
You can see an example at http://www.wumk.com/shirt/9760002/xxl
(Disclaimer: I don't personally care for the site and wouldn't go there if you are easily offended like I am)
Just try to add the same item to your cart two or three times without closing the paypal window, if you can.