[jQuery] One last hurdle to jQuery's AJAX usage...

[jQuery] One last hurdle to jQuery's AJAX usage...

Not sure if this message went through or not so I'll repost it once.
----------------------
Okay...
I'm doing some testing in trying to replace my existing AJAX library with
jQuery
and I'm so close I can almost touch it. But a few things are eluding me.
Here's
the code I'm running:
http://commadelimited.com/recipes/test.cfm
At the moment, I'm returning a javascript object containing multiple hashes:
Title and Content. I don't NEED to keep the results this way, but if I can
then
that's less code I have to change.
So anyway...I'm getting this javascript object back and I'm not sure what to
do
with it. The previous library parsed it out, allowing me to access the
"title"
variable with dot syntax like so: result.title. You can see from the test
above
that I'm getting the code back without errors, I'm just not sure how to get
at
the values contained within the hash array.
The jQuery code I'm using looks like this:
function getResults() {
var myString = $('#theField').val();
$.get("includes/q.cfc?method=testByKeyword&term=" +
myString,function(result){
$('#theResult').val(result);
});
};
Anyone have input?
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/










































    • Topic Participants

    • andy