Re: [Flashcoders] HTTP post request in the background
Well, I tried it by itself without the mailData:LoadVars... still no luck in the browser. Worked fine testing it... On Sep 21, 2006, at 1:31 PM, Mike Keesey wrote: Actually, scratch that -- move the whole formData deal to its own function, and call that from onMailComplete(). IOW, do the calls sequentially, not simultaneously. ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: Thursday, September 21, 2006 11:07 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] HTTP post request in the background onResponseComplete is probably being called before onMailDataResponseComplete (damn that's a long name! onMailComplete would suffice, no?), and thus unloading the whole SWF as it loads a new HTML page. Try moving this line: formData.sendAndLoad("http://www.salescloser.com/XMLAddContact.aspx";, response); ... to the very end of your processForm() function. ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Bill Abel Sent: Thursday, September 21, 2006 10:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] HTTP post request in the background I'm still having one problem. When I test this movie from within Flash, it sends both LoadVars, but when I try it from the .swf on the web server, it only sends to the .php script. Anyone see the problem? import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void { getURL("http://www.hallmanhill.com/information/thankyou.html";); trace("posted data"); } function onMailDataResponseComplete(success:Boolean):Void { trace("sent email"); } function processForm() { var response = new LoadVars(); var formData:LoadVars = new LoadVars(); formData.firstname = firstname_tb.text; formData.lastname = lastname_tb.text; formData.address = address_tb.text; formData.city = city_tb.text; formData.state = state_tb.text; formData.zip = zip_tb.text; formData.homephone1 = areacode; formData.homephone2 = prefix; formData.homephone3 = linenumber; formData.email = email_tb.text; response.onLoad = Delegate.create(this, onResponseComplete); formData.sendAndLoad("http://www.salescloser.com/ XMLAddContact.aspx", response); trace(formData); var mailData = new LoadVars(); var mailDataResponse = new LoadVars(); mailData = formData; mailDataResponse.onLoad = Delegate.create(this, onMailDataResponseComplete); mailData.sendAndLoad("http://test.slaughtergroup.com/mail.php";, mailDataResponse, "POST"); trace(mailData); } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] HTTP post request in the background
IT is a long name... I tried that with no luck. I also tried commenting out the getURL(), but still no luck. I get an error in Safari and in Firefox a message "waiting for www.salescloser.com..." Again, the .swf works when I test it within Flash. Even without the second LoadVars, I still can't get it to work in the browser. Do you think it's something to do with the ASPX script? On Sep 21, 2006, at 1:07 PM, Mike Keesey wrote: onResponseComplete is probably being called before onMailDataResponseComplete (damn that's a long name! onMailComplete would suffice, no?), and thus unloading the whole SWF as it loads a new HTML page. Try moving this line: formData.sendAndLoad("http://www.salescloser.com/XMLAddContact.aspx";, response); ... to the very end of your processForm() function. ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Bill Abel Sent: Thursday, September 21, 2006 10:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] HTTP post request in the background I'm still having one problem. When I test this movie from within Flash, it sends both LoadVars, but when I try it from the .swf on the web server, it only sends to the .php script. Anyone see the problem? import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void { getURL("http://www.hallmanhill.com/information/thankyou.html";); trace("posted data"); } function onMailDataResponseComplete(success:Boolean):Void { trace("sent email"); } function processForm() { var response = new LoadVars(); var formData:LoadVars = new LoadVars(); formData.firstname = firstname_tb.text; formData.lastname = lastname_tb.text; formData.address = address_tb.text; formData.city = city_tb.text; formData.state = state_tb.text; formData.zip = zip_tb.text; formData.homephone1 = areacode; formData.homephone2 = prefix; formData.homephone3 = linenumber; formData.email = email_tb.text; response.onLoad = Delegate.create(this, onResponseComplete); formData.sendAndLoad("http://www.salescloser.com/ XMLAddContact.aspx", response); trace(formData); var mailData = new LoadVars(); var mailDataResponse = new LoadVars(); mailData = formData; mailDataResponse.onLoad = Delegate.create(this, onMailDataResponseComplete); mailData.sendAndLoad("http://test.slaughtergroup.com/mail.php";, mailDataResponse, "POST"); trace(mailData); } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] HTTP post request in the background
Actually, scratch that -- move the whole formData deal to its own function, and call that from onMailComplete(). IOW, do the calls sequentially, not simultaneously. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Mike Keesey > Sent: Thursday, September 21, 2006 11:07 AM > To: 'Flashcoders mailing list' > Subject: RE: [Flashcoders] HTTP post request in the background > > onResponseComplete is probably being called before > onMailDataResponseComplete (damn that's a long name! onMailComplete > would suffice, no?), and thus unloading the whole SWF as it loads a new > HTML page. > > Try moving this line: > > formData.sendAndLoad("http://www.salescloser.com/XMLAddContact.aspx";, > response); > > ... to the very end of your processForm() function. > ― > Mike Keesey > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:flashcoders- > > [EMAIL PROTECTED] On Behalf Of Bill Abel > > Sent: Thursday, September 21, 2006 10:20 AM > > To: Flashcoders mailing list > > Subject: Re: [Flashcoders] HTTP post request in the background > > > > I'm still having one problem. When I test this movie from within > > Flash, it sends both LoadVars, but when I try it from the .swf on the > > web server, it only sends to the .php script. > > > > Anyone see the problem? > > > > > > import mx.utils.Delegate; > > > > function onResponseComplete(success:Boolean):Void { > > getURL("http://www.hallmanhill.com/information/thankyou.html";); > > trace("posted data"); > > } > > function onMailDataResponseComplete(success:Boolean):Void { > > trace("sent email"); > > } > > > > function processForm() { > > > > var response = new LoadVars(); > > var formData:LoadVars = new LoadVars(); > > formData.firstname = firstname_tb.text; > > formData.lastname = lastname_tb.text; > > formData.address = address_tb.text; > > formData.city = city_tb.text; > > formData.state = state_tb.text; > > formData.zip = zip_tb.text; > > formData.homephone1 = areacode; > > formData.homephone2 = prefix; > > formData.homephone3 = linenumber; > > formData.email = email_tb.text; > > > > response.onLoad = Delegate.create(this, onResponseComplete); > > formData.sendAndLoad("http://www.salescloser.com/ > > XMLAddContact.aspx", response); > > trace(formData); > > > > var mailData = new LoadVars(); > > var mailDataResponse = new LoadVars(); > > mailData = formData; > > mailDataResponse.onLoad = Delegate.create(this, > > onMailDataResponseComplete); > > mailData.sendAndLoad("http://test.slaughtergroup.com/mail.php";, > > mailDataResponse, "POST"); > > trace(mailData); > > > > } > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] HTTP post request in the background
onResponseComplete is probably being called before onMailDataResponseComplete (damn that's a long name! onMailComplete would suffice, no?), and thus unloading the whole SWF as it loads a new HTML page. Try moving this line: formData.sendAndLoad("http://www.salescloser.com/XMLAddContact.aspx";, response); ... to the very end of your processForm() function. ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Bill Abel > Sent: Thursday, September 21, 2006 10:20 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] HTTP post request in the background > > I'm still having one problem. When I test this movie from within > Flash, it sends both LoadVars, but when I try it from the .swf on the > web server, it only sends to the .php script. > > Anyone see the problem? > > > import mx.utils.Delegate; > > function onResponseComplete(success:Boolean):Void { > getURL("http://www.hallmanhill.com/information/thankyou.html";); > trace("posted data"); > } > function onMailDataResponseComplete(success:Boolean):Void { > trace("sent email"); > } > > function processForm() { > > var response = new LoadVars(); > var formData:LoadVars = new LoadVars(); > formData.firstname = firstname_tb.text; > formData.lastname = lastname_tb.text; > formData.address = address_tb.text; > formData.city = city_tb.text; > formData.state = state_tb.text; > formData.zip = zip_tb.text; > formData.homephone1 = areacode; > formData.homephone2 = prefix; > formData.homephone3 = linenumber; > formData.email = email_tb.text; > > response.onLoad = Delegate.create(this, onResponseComplete); > formData.sendAndLoad("http://www.salescloser.com/ > XMLAddContact.aspx", response); > trace(formData); > > var mailData = new LoadVars(); > var mailDataResponse = new LoadVars(); > mailData = formData; > mailDataResponse.onLoad = Delegate.create(this, > onMailDataResponseComplete); > mailData.sendAndLoad("http://test.slaughtergroup.com/mail.php";, > mailDataResponse, "POST"); > trace(mailData); > > } > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] HTTP post request in the background
I'm still having one problem. When I test this movie from within Flash, it sends both LoadVars, but when I try it from the .swf on the web server, it only sends to the .php script. Anyone see the problem? import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void { getURL("http://www.hallmanhill.com/information/thankyou.html";); trace("posted data"); } function onMailDataResponseComplete(success:Boolean):Void { trace("sent email"); } function processForm() { var response = new LoadVars(); var formData:LoadVars = new LoadVars(); formData.firstname = firstname_tb.text; formData.lastname = lastname_tb.text; formData.address = address_tb.text; formData.city = city_tb.text; formData.state = state_tb.text; formData.zip = zip_tb.text; formData.homephone1 = areacode; formData.homephone2 = prefix; formData.homephone3 = linenumber; formData.email = email_tb.text; response.onLoad = Delegate.create(this, onResponseComplete); formData.sendAndLoad("http://www.salescloser.com/ XMLAddContact.aspx", response); trace(formData); var mailData = new LoadVars(); var mailDataResponse = new LoadVars(); mailData = formData; mailDataResponse.onLoad = Delegate.create(this, onMailDataResponseComplete); mailData.sendAndLoad("http://test.slaughtergroup.com/mail.php";, mailDataResponse, "POST"); trace(mailData); } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] HTTP post request in the background
This works. Thanks so much! Here's the final code... // *** Post data to Sales Closer *** import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void { trace("Completed"); } function processForm() { //process phone number var full_phone_number = phone_tb.text; split_number = full_phone_number.split(""); for (var i = 0; i 7) { //split into area code, prefix, and line number var areacodea = split_number.slice(0,3); var areacode = areacodea.join(""); var prefixa = split_number.slice(3,6); var prefix = prefixa.join(""); var linenumbera = split_number.slice(6,10); var linenumber = linenumbera.join(""); //trace("3 parts" + areacode + " " + prefix + " " + linenumber); } else { // split into prefix and line number var prefixa = split_number.slice(0,3); var prefix = prefixa.join(""); var linenumbera = split_number.slice(3,7); var linenumber = linenumbera.join(""); //trace("2 parts" + prefix + " " + linenumber); } //number = split_number.join(""); //trace(number); } } var response = new LoadVars(); var formData:LoadVars = new LoadVars(); formData.firstname = firstname_tb.text; formData.lastname = lastname_tb.text; formData.address = address_tb.text; formData.city = city_tb.text; formData.state = state_tb.text; formData.zip = zip_tb.text; formData.homephone1 = areacode; formData.homephone2 = prefix; formData.homephone3 = linenumber; formData.email = email_tb.text; trace(formData); response.onLoad = Delegate.create(this, onResponseComplete); formData.sendAndLoad("http://www.salescloser.com/ XMLAddContact.aspx", response); } On Sep 20, 2006, at 3:31 PM, Mike Keesey wrote: You should use something along these lines: import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void { // Do something in response. } var request:LoadVars = new LoadVars(); // Set up variables in request. var response = new LoadVars(); response.onLoad = Delegate.create(this, onResponseComplete); request.sendAndLoad(url, response); ― Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] HTTP post request in the background
Bill Abel escreveu: Here is what I have now with only the .send method. I tried using sendAndLoad(url, null, "POST")...as well as several different ways. This is my currently working version. I've commented out the parts that I need to work. The function process the phone number and then puts everything into a LoadVars array to send. Right now it's sending it to a formmail.pl script which redirects you. I need the LoadVars to be posted to the .aspx script. I don't need to receive anything back. function processForm() { //process phone number var full_phone_number = phone_tb.text; split_number = full_phone_number.split(""); for (var i = 0; i 7) { //split into area code, prefix, and line number var areacodea = split_number.slice(0,3); var areacode = areacodea.join(""); var prefixa = split_number.slice(3,6); var prefix = prefixa.join(""); var linenumbera = split_number.slice(6,10); var linenumber = linenumbera.join(""); //trace("3 parts" + areacode + " " + prefix + " " + linenumber); } else { // split into prefix and line number var prefixa = split_number.slice(0,3); var prefix = prefixa.join(""); var linenumbera = split_number.slice(3,7); var linenumber = linenumbera.join(""); //trace("2 parts" + prefix + " " + linenumber); } //number = split_number.join(""); //trace(number); } } var getData:LoadVars= new LoadVars(); var formData:LoadVars = new LoadVars(); formData.firstname = firstname_tb.text; formData.lastname = lastname_tb.text; formData.address = address_tb.text; formData.city = city_tb.text; formData.state = state_tb.text; formData.zip = zip_tb.text; formData.phone = phone_tb.text; formData.email = email_tb.text; trace(formData); formData.sendAndLoad("http://www.hallmanhill.com/cgi-sys/FormMail.pl";, getData, "POST"); getData.onLoad = function(ok:Boolean) { if(ok) { trace(this); trace("Data transfered!!!"); } } //formData.send("http://www.hallmanhill.com/cgi-sys/FormMail.pl";, "_self", "POST"); //formData.sendAndLoad("https://www.salescloser.com/XMLAddContact.aspx";); Just do an test!!! -- Gustavo Teider ( gugateider ) www.gugateider.com Curitiba - PR errorVars = new LoadVars(); formData = new LoadVars(); formData.firstname = firstname_tb.text; formData.lastname = lastname_tb.text; formData.address = address_tb.text; formData.city = city_tb.text; formData.state = state_tb.text; formData.zip = zip_tb.text; formData.phone = phone_tb.text; //formData.homephone1 = areacode; //formData.homephone2 = prefix; //formData.homephone3 = linenumber; formData.email = email_tb.text; //formData.Protocol = "Ing"; trace(formData); formData.send("http://www.hallmanhill.com/cgi-sys/FormMail.pl";, "_self", "POST"); //formData.sendAndLoad("https://www.salescloser.com/XMLAddContact.aspx";); } On Sep 20, 2006, at 2:57 PM, Gustavo Teider - Adobe Flash Developer wrote: Bill Abel escreveu: How do you post an array to a server side-script without loading the script's URL in the browser. I can post data using Ruby's Net::HTTP and it works great in a rails app. I want to do the same thing in Flash. LoadVars.send will only work if I load the script's URL into the browser. This would be fine if I controlled the script, but it's on another application server. I need to pass it the data in the background. I tried .sendAndLoad, but that has the same problems. Is there a simple way to do this? Can I use flash remoting and pass the data to a PHP script and make the post from there? I see there is a way to do this with Cold Fusion using the CF.http() method, so I assume there is something similar elsewhere. thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com always i used sendAndLoad method to do this ... its works fine ... what your code ? did you create two loadVars ? one to post , other to get ? []´s --Gustavo Teider ( gugateider ) www.gugateider.com Curitiba - PR ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chatt
RE: [Flashcoders] HTTP post request in the background
You should use something along these lines: import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void { // Do something in response. } var request:LoadVars = new LoadVars(); // Set up variables in request. var response = new LoadVars(); response.onLoad = Delegate.create(this, onResponseComplete); request.sendAndLoad(url, response); ― Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] HTTP post request in the background
Here is what I have now with only the .send method. I tried using sendAndLoad(url, null, "POST")...as well as several different ways. This is my currently working version. I've commented out the parts that I need to work. The function process the phone number and then puts everything into a LoadVars array to send. Right now it's sending it to a formmail.pl script which redirects you. I need the LoadVars to be posted to the .aspx script. I don't need to receive anything back. function processForm() { //process phone number var full_phone_number = phone_tb.text; split_number = full_phone_number.split(""); for (var i = 0; i 7) { //split into area code, prefix, and line number var areacodea = split_number.slice(0,3); var areacode = areacodea.join(""); var prefixa = split_number.slice(3,6); var prefix = prefixa.join(""); var linenumbera = split_number.slice(6,10); var linenumber = linenumbera.join(""); //trace("3 parts" + areacode + " " + prefix + " " + linenumber); } else { // split into prefix and line number var prefixa = split_number.slice(0,3); var prefix = prefixa.join(""); var linenumbera = split_number.slice(3,7); var linenumber = linenumbera.join(""); //trace("2 parts" + prefix + " " + linenumber); } //number = split_number.join(""); //trace(number); } } errorVars = new LoadVars(); formData = new LoadVars(); formData.firstname = firstname_tb.text; formData.lastname = lastname_tb.text; formData.address = address_tb.text; formData.city = city_tb.text; formData.state = state_tb.text; formData.zip = zip_tb.text; formData.phone = phone_tb.text; //formData.homephone1 = areacode; //formData.homephone2 = prefix; //formData.homephone3 = linenumber; formData.email = email_tb.text; //formData.Protocol = "Ing"; trace(formData); formData.send("http://www.hallmanhill.com/cgi-sys/FormMail.pl";, "_self", "POST"); //formData.sendAndLoad("https://www.salescloser.com/ XMLAddContact.aspx"); } On Sep 20, 2006, at 2:57 PM, Gustavo Teider - Adobe Flash Developer wrote: Bill Abel escreveu: How do you post an array to a server side-script without loading the script's URL in the browser. I can post data using Ruby's Net::HTTP and it works great in a rails app. I want to do the same thing in Flash. LoadVars.send will only work if I load the script's URL into the browser. This would be fine if I controlled the script, but it's on another application server. I need to pass it the data in the background. I tried .sendAndLoad, but that has the same problems. Is there a simple way to do this? Can I use flash remoting and pass the data to a PHP script and make the post from there? I see there is a way to do this with Cold Fusion using the CF.http() method, so I assume there is something similar elsewhere. thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com always i used sendAndLoad method to do this ... its works fine ... what your code ? did you create two loadVars ? one to post , other to get ? []´s -- Gustavo Teider ( gugateider ) www.gugateider.com Curitiba - PR ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] HTTP post request in the background
Bill Abel escreveu: How do you post an array to a server side-script without loading the script's URL in the browser. I can post data using Ruby's Net::HTTP and it works great in a rails app. I want to do the same thing in Flash. LoadVars.send will only work if I load the script's URL into the browser. This would be fine if I controlled the script, but it's on another application server. I need to pass it the data in the background. I tried .sendAndLoad, but that has the same problems. Is there a simple way to do this? Can I use flash remoting and pass the data to a PHP script and make the post from there? I see there is a way to do this with Cold Fusion using the CF.http() method, so I assume there is something similar elsewhere. thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com always i used sendAndLoad method to do this ... its works fine ... what your code ? did you create two loadVars ? one to post , other to get ? []´s -- Gustavo Teider ( gugateider ) www.gugateider.com Curitiba - PR ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com