• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • 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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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