?
Solved

jQuery/xml (how to pass xml ?)

Posted on 2013-01-29
5
Medium Priority
?
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…
Suggested Courses

770 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