View Full Version : loadVariablesNum loading url only in preview
bsilcox
04-14-2005, 01:40 PM
I have a form in MX 2004 with component buttons. Each has a loadVariablesNum ("a url", "_blank", "POST");
When I publish preview in the browser, the url loads perfectly and the data posts.
However, now that I have ftp'd it to my web server, the buttons are not loading the url.
Can someone help me explain this bug? Is it because the .swf is embedded into a dreamweaver .htm page?
loadVariablesNum ("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
CyanBlue
04-14-2005, 01:44 PM
Howdy and Welcome... :)
I have a feeling that you won't have any more of those problem if you use LoadVars() object instead of loadVariablesNum() function... Go check out the tutorials section if you don't know how to use it... ;)
bsilcox
04-14-2005, 02:09 PM
Thanks for such a quick reply. I did find a tutorial here:
http://www.actionscript.org/tutorials/intermediate/Vote_system_flash_php_mySQL/index.shtml
I still have the same problem though, the paypal url is not opening. Why would loadVariablesNum open th eurl in preview mode but not for real?
I switched out my code to look like this:
stop();
var loadVars_in:LoadVars = new LoadVars();
var loadVars_out:LoadVars = new LoadVars();
loadVars_in.onLoad = function(success) {
if (success) {
//If the values are in goto results
trace(item_name);
} else {
//notify of failure
}
};
//select button 2
btn_2.onRelease = function() {
set ("add","1");
set("cmd","_cart");
set("business" ,"bsilcox@therockfwc.org" );
set("item_name","r.u.o.c. Individual Golf Registration" );
set ("amount","125.00" );
set("no_note","1" );
set("currency_code","USD" );
loadVars_out.sendAndLoad("https://www.paypal.com/cgi-bin/webscr", loadVars_in, "POST");
gotoAndStop(7);
};
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.