Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 349
  • Last Modified:

jQuery/xml (how to pass xml ?)

Hello experts, I need to pass the xml retrieved from "myXmlFile/buildxml3.cfc" to an external site.  How do I pass the returned xml file?

As always, thanks so much for your time.


<script>
  $(document).ready(function() {
        
        $.ajax({
            //alert("ajax inside");
            type: "GET",
            url: "myXmlFile/buildxml3.cfc?ID=1234",
            dataType: "xml",
			success: success: function () {
		  	/// post the xml to another site???
	  		}
			
			});
 });
</script>

Open in new window

0
whaleyk
Asked:
whaleyk
  • 2
  • 2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
U mean upload to a different site?
0
 
whaleykAuthor Commented:
Yes sedgwick (sorry)
0
 
leakim971PluritechnicianCommented:
why not using only the server to send it?
<script>
$(document).ready(function() {
        $.get("sendXMLFileForMe.cfc?ID=1234", function(message) { alert(message); });
});
</script>

Open in new window

0
 
whaleykAuthor Commented:
Because I was confused and overcomplicated things!  Thank you (sorry)!!!
0
 
leakim971PluritechnicianCommented:
you're welcome ;-))
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now