Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / June 2004



Tip: Looking for answers? Try searching our database.

LoadVars.send()...please help! Gotta B a way!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sharkmenace - 19 Jun 2004 05:00 GMT
Wow, the posts in this forum looks reeal skimpy.

I've finally gotten to the .send() method to work and it brings frustration to
know tha macromedia has still not built a solid programming model. >>taking
deep breaths<<

I'm new to remoting & PHP and my server doesn't allow sockets :(  WTF!

Well, enough wining! Here's the problem. I keep getting a window for my .php
script when a send is made...sounds familiar?

Is there anyway to get around this?
The send doesn't seem to work if I don't supply a target and send ("POST")
method
nerkette - 23 Jun 2004 15:01 GMT
Hi,

Could you post an example of your code call? That would help a bit. And what
version are you running?

But this might be a solution. I've had similar issues before and had to try a
few things out. It might be related to the  target you are specifying. If you
put '0' it loads the variables to the root file. If you put '_self', it pops up
a new window. But I tried just leaving the target blank with only the quotes
like this ('') and for some reason, that worked. Script processed and no window
opened. Hope this helps.  
Sharkmenace - 23 Jun 2004 16:20 GMT
I tried that but it doesn't seem to work. What happens is that once the file on
the server has changed then the variables will seem to have the right values,
but in fact the variables haven't been updated.
the code is simple, because it's really just a test of the keywords
functionallity. I set some variables to a value. Send it to the PHP script.
change the variables then download them again to see if I get the original
values.

Vars = new LoadVars();
Vars.onLoad = function(success) {
    if (success) {
        portTxt.text = "x = "+Vars.x+", y = "+Vars.y;
    }
};
Vars.x=50
Vars.y=165
Vars.send("Vars.php", "", "POST");
Vars.x=0
Vars.y=0
nerkette - 23 Jun 2004 21:05 GMT
With the LoadVars.send method, If the target parameter is specified, the
server's response is displayed in the browser frame window named target. If the
target parameter is omitted, the server's response is discarded.
Since you are only using send, your response is being omitted.

You may want to try this code instead

Vars.sendAndLoad("Vars.php", "", "POST");

It is supposed to send your variables, and then load the updated variables
back into the specified object so you can retrieve them again.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.