So continuing on my learning experience, I initially tried using .ajax() 
to make my Ajax call but was unsuccessful. Then with the help of John 
and Arash, I was able to make the call via .get().

I'm revisiting the .ajax() issue since I'm not sure if its something 
that I'm doing wrong or if its a bug in JQuery 1.0.1.

This code works:

$.get( "test.cfm", function(msg){
                    alert( "Data Saved: " + $( "MyText", msg).text() );
        });

This code does not:

$.ajax({ type: "GET",
         url: "test.cfm",
         dataType: "xml",
         success: function(msg){ alert( $( "MyText", msg ).text() ); }
                          });

For the .ajax snippet, Firebug returns the following XML as the response:

<?xml version="1.0" encoding="UTF-8"?>
<MyRoot><MyText>FooManchu</MyText></MyRoot>

and the response header is:

Content-Type: text/xml

but the alert box specified in the success param comes out empty.

Any ideas?

Rey...

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to