Solved

jQuery/xml (how to pass xml ?)

Posted on 2013-01-29
5
328 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now