|
-
Hey, Guys --
I'm trying to send an XML file back to the server from a Flash 5 movie, using the XML object (not XMLSocket) and I'm not having a lot of success. Perhaps someone could shed some light on this for me????
Here's what's happening:
I've got a simple 1 frame Main timeline I'm using to test code that is successfully loading an XML file, with XML.load, and successfully extracting info from the nodes and formatting the content into a textfield. That stuff all works.
But... when I try to send the original XML object I loaded my file into back to the server, no joy. XML.sendAndLoad appears to only be sending the http header, and XML.send doesn't seem to send *anything*...
Can anyone describe the POST format that Flash sends? It's hard to tell for sure that the server isn't receiving the data without knowing what it's supposed to receive...
Here's the code I'm using - I'm sure some of you will recognize its origins. ;-)
urlXML = new XML();
urlXML.contentType="text/xml";
urlXML.onLoad = sendXML;
urlXML.load("http://jeastman-2k:7001/rs/testtransform");
function sendXML(){
if(this.loaded){
newXML = new XML();
urlXML.sendAndLoad("http://dallison2:7001/timm/ModifyForm",newXML);
}
}
Also, any clue why XML.send doesn't seem to work at all? The two methods should both work in the same scenarios, right?
I have searched the archives as far back as January for the answer to this question, and so none of the other posts that seems to be asking a similar question have ever been answered.... is this because the question is so basic, or because no one knows the answer?
I sure hope someone out there can help... I'm getting pretty frustrated. This was supposed to be the *easy* part of this project!
Thanks in advance!
Melanie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|