BWWebDesigns
02-16-2009, 11:18 PM
Need advice on the following
I have a flash button that takes dynamic input and then posts the variables to a page using a form post method within the flash such as below
on (release) {
// Create the LoadVars that will hold our paypal information
var paypal = new LoadVars();
paypal.cmd = "_xclick";
paypal.item_name = Item_name;
paypal.amount = input_txt.vr_amount;
paypal.business = Paypal_email_address;
paypal.currency_code = Paypal_currency_code;
paypal.lc = Paypal_country;
paypal.notify_url = Paypal_notify_url;
paypal.return = Paypal_return_url;
paypal.cancel_return = Paypal_cancel_return_url;
paypal.tax = Paypal_tax;
paypal.pal = Paypal_affiliate_code;
paypal.mbr = Paypal_affiliate_code;
paypal.bn = Paypal_button_type;
paypal.on0 = Paypal_option_name_one;
paypal.os0 = Paypal_option_selection_one;
//This is where we send our information to PayPal.
paypal.send("https://www.paypal.com/cgi-bin/webscr","_blank","POST");
}
What i need to know is, as you can see the code above needs to submit a form field with a variable name of return as in paypal.return, so paypal can take the info in this field and know the return url after payment
My problem is i noticed that the word return is some kind of special function within flash so when typing paypal.return it makes the word blue and im guessing will not process the action script correctly because of this
Now to my question, do i simply wrap single quotes or something round the word like so paypal.'return' = etc etc
Or what?
Thanks in advance
I have a flash button that takes dynamic input and then posts the variables to a page using a form post method within the flash such as below
on (release) {
// Create the LoadVars that will hold our paypal information
var paypal = new LoadVars();
paypal.cmd = "_xclick";
paypal.item_name = Item_name;
paypal.amount = input_txt.vr_amount;
paypal.business = Paypal_email_address;
paypal.currency_code = Paypal_currency_code;
paypal.lc = Paypal_country;
paypal.notify_url = Paypal_notify_url;
paypal.return = Paypal_return_url;
paypal.cancel_return = Paypal_cancel_return_url;
paypal.tax = Paypal_tax;
paypal.pal = Paypal_affiliate_code;
paypal.mbr = Paypal_affiliate_code;
paypal.bn = Paypal_button_type;
paypal.on0 = Paypal_option_name_one;
paypal.os0 = Paypal_option_selection_one;
//This is where we send our information to PayPal.
paypal.send("https://www.paypal.com/cgi-bin/webscr","_blank","POST");
}
What i need to know is, as you can see the code above needs to submit a form field with a variable name of return as in paypal.return, so paypal can take the info in this field and know the return url after payment
My problem is i noticed that the word return is some kind of special function within flash so when typing paypal.return it makes the word blue and im guessing will not process the action script correctly because of this
Now to my question, do i simply wrap single quotes or something round the word like so paypal.'return' = etc etc
Or what?
Thanks in advance