Answered
Javascript + CF XML Integration
Hi everyone...
I've searched ALL over the net and I can't seem to come up with results on how to do my task.
The task seems fairly simple, and I've tried quite a few methods, but I cannot seem to get it to work
Here is my goal:
1)I have a simply HTML form with a submit button and a <div> tag with id="divver". This page is "AJAX enabled" so I want the data to be transferred "behind the scenes".
2)Inside this HTML page is some javascript to send an asynchronus request to a .cfm page.
(NOTE: I've tried to receive a responseText from the .cfm page and this works...so the communication is correct
3)Inside the .cfm page I just have some simple XML in a string and I've tried using <cfdump> and <cfoutput> to output the XML
4)My goal is to receive this XML from the .cfm page and process it using javascript and then update the HTML page with the javascript in it.
I think my problem is I don't know how to output the XML correctly using the .cfm page, and when I receive it with my JS I don't know how to process it.
Any help would be *GREATLY* helpful. Thanks!
I've searched ALL over the net and I can't seem to come up with results on how to do my task.
The task seems fairly simple, and I've tried quite a few methods, but I cannot seem to get it to work
Here is my goal:
1)I have a simply HTML form with a submit button and a <div> tag with id="divver". This page is "AJAX enabled" so I want the data to be transferred "behind the scenes".
2)Inside this HTML page is some javascript to send an asynchronus request to a .cfm page.
(NOTE: I've tried to receive a responseText from the .cfm page and this works...so the communication is correct
3)Inside the .cfm page I just have some simple XML in a string and I've tried using <cfdump> and <cfoutput> to output the XML
4)My goal is to receive this XML from the .cfm page and process it using javascript and then update the HTML page with the javascript in it.
I think my problem is I don't know how to output the XML correctly using the .cfm page, and when I receive it with my JS I don't know how to process it.
Any help would be *GREATLY* helpful. Thanks!
