all groups > flash actionscript > april 2006 >
You're in the

flash actionscript

group:

send data to asp w/out opening new page



send data to asp w/out opening new page Ex Malterra
4/18/2006 11:08:55 PM
flash actionscript: I'm a Director developer learning Flash. So much is the same, so much is
different! Anyway, I have a SWF in a web page that uses an XMLConnection
component to get XML from ASP. I use the XMLConnection as the dataProvider for
a two Trees. I have a button that lets users associate elements from each tree,
and the requisite data is sent to another ASP page via getURL() so it can be
stored in a database. All this works fine, but I don't want a new page to open,
as it does with the "_blank" getURL() window argument, and I don't want the
current page to change to the ASP results(nothing) as it does with "_top",
"_parent", "_self" or no argument. I've tried using the send() method of a
LoadVars object, but have the same problem with it. I'm thinking of an
in-elegant workaround by setting the URL property of another XMLConnetion to
the ASP page I need to call and then calling trigger(). The XMLConnetion
component will end up not getting any data back from the ASP page but the page
should still do the SQL command and update the database I think. Is there
another function or object I?m unaware of that?ll let me do this in a more
proper way? Thanx in advance for your suggestions.
Re: send data to asp w/out opening new page abeall
4/18/2006 11:23:56 PM
LoadVars.send() was opening a new window? That's strange. I've had problems
with LoadVars.send() and know there used to be bugs with it, so I've always
used LoadVars. sendAndLoad, and just ignore the return. You have to specify a
return LoadVars object(or it won't always work) but you don't have to anything
with it, of course.
Re: send data to asp w/out opening new page Ex Malterra
4/18/2006 11:35:48 PM
AddThis Social Bookmark Button