A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: (Newbie Q) sendAndLoad() and URLs: how much can you do?

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    1
    I would like to use the sendAndLoad() method to send and receive some XML, using some variables in the URL. Does anyone know if I can do the following?:

    beginXml = new XML();
    beginXml.load( "http://server/servlet/begin.xml" );
    id = "myID";
    sp = "mySp";
    msg = beginXml.toString();
    retXml = new XML();
    retXml.sendAndLoad( "http://server/servlet/servlet?id="+id+"&sp="+sp+"&msg="+msg, retXml );

    You help would be greatly appreciated!

    Thanks,
    Meka Egwuekwe

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    The only possible problem that you could have is if the begin.xml document is very large then it may be too long to send back to the server.

    Also this line;

    retXml.sendAndLoad( "http://server/servlet/servlet?id="+id+"&sp="+sp+"&msg="+msg, retXml );

    Is equivalent to:

    retXml.Load( "http://server/servlet/servlet?id="+id+"&sp="+sp+"&msg="+msg);

    All sendAndLoad does is loads the XML and passes it to another XML object, passing it back to the original does exactly the sames as .load.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center