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

whaleykAsked:
Who is Participating?
 
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
 
Meir RivkinFull stack Software EngineerCommented:
U mean upload to a different site?
0
 
whaleykAuthor Commented:
Yes sedgwick (sorry)
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.

All Courses

From novice to tech pro — start learning today.