Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Loadvars submit cannot add to paypal cart


sneakyimp
2/19/2004 10:27:48 PM
i am using a LOADVARS OBJECT to POST some data to paypal which populates a
paypal shopping cart. this all happens when i press a button. my problem is
that it will successfully open a new window for the first item added, but if i
return to the original window in the back ground and try to add additional
items, the buttons do absolutely nothing.

//i have a button on my flash movie for which i have defined this event
handler:

btnItem1.onRelease = function() {
SubmitForm("1 Dozen Left Handed Sport Grip Gloves", "60.00", "Size", "Large",
1);
}

// the function it calls looks like this
function SubmitForm(name, amount, onvar, osvar, addvar) {
lvMySubmit = new LoadVars();
lvMySubmit.cmd="_cart";
lvMySubmit.business="clientaccount@foobar.net";
lvMySubmit.no_note = "1";
lvMySubmit.cs = "1";
lvMySubmit.currency_code = "USD";
lvMySubmit.lc = "US";
lvMySubmit.item_name = name;
lvMySubmit.amount = amount;
lvMySubmit.on0 = onvar;
lvMySubmit.os0 = osvar;
lvMySubmit["add"]=addvar;
lvMySubmit.send(strSubmitURL, "cart", "POST");
}


as i have said, the first button click works like a charm. the subsequent
ones do ABSOLUTELY NOTHING. what can i do? anybody have an idea?
sneakyimp
2/23/2004 1:11:34 AM
this looks like a BUG to me...try it yourself...go here and click on 'ORDER'

http://myriadgolf.us

sneakyimp
2/23/2004 7:32:26 PM
so i tried yet another workaround...i tried concatenating all my variables into
a string and using getURL. the first one worked fine just like the
loadvars.send, but when i returned to the original window and clicked the
buttons again, they do ABSOLUTELY NOTHING. flash simply will not refresh the
second window. if i close the window, the buttons work just fine.

are we calling this a 'feature'? can anyone suggest a workaround??????? any
notes on this in the technotes? i haven't been able to find any. HELLLO???????
tclyndell
2/27/2004 5:10:55 PM
I'm trying to get to where you are using PAYPAL. I'm having a difficult time
setting up FLASH to run with PAYPAL What are the actionscripts are you running.
I'm fairly new to scripting, so please understand I'm a novice to scripting,
but I'm trying to get a handle on it.

Could you forward me your actionscripts?
sneakyimp
2/27/2004 10:06:43 PM
Let's get in touch via email.

I'm still trying to resolve this problem...it seems completely odd to me that
none of the senior people around here have responded to this. It seems like
such a simple and necessary thing to do...and if flash can interact with
paypal, that's huge!
tclyndell
2/28/2004 9:36:59 PM
I'm nearly at that same point with paypal...

AddThis Social Bookmark Button