Solved

jQuery/xml (how to pass xml ?)

Posted on 2013-01-29
5
330 Views
Last Modified: 2013-01-29
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
Comment
Question by:whaleyk
  • 2
  • 2
5 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 38831646
U mean upload to a different site?
0
 

Author Comment

by:whaleyk
ID: 38831650
Yes sedgwick (sorry)
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38831952
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
 

Author Closing Comment

by:whaleyk
ID: 38832004
Because I was confused and overcomplicated things!  Thank you (sorry)!!!
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38832007
you're welcome ;-))
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question