[jQuery] Re: need hellp with .get and json

2007-06-21 Thread [EMAIL PROTECTED]
Is there a reason you can't use the $.getJSON function? (see http://docs.jquery.com/Ajax#.24.getJSON.28_url.2C_params.2C_callback_.29) It does the same thing as the $.get function but parses the JSON and passes an object to your callback instead of a string. If you do need to eval() it, you have

[jQuery] Re: need hellp with .get and json

2007-06-21 Thread amircx
umm. i tried it , not work! i got in firebug this: uncaught exception: [object Object] {"statusmsg":"1","errmsg":"0","desiredurl":"sddadandsadsad-as"} http://localhost/includes/private/php/checkVars.php?bn=sddad&gn=sadsad&bl=sadasd&gl=as&what=SuggestSiteName $.get("/includes/private/php/che

[jQuery] Re: need hellp with .get and json

2007-06-20 Thread Christopher Jordan
you say that json returns: {"statusmsg":"1","errmsg":"0","desiredurl":"dsfandsdfdsf-ds"} is that right? is the problem that you don't know how to access what is being returned? If that's the case then you'll need to eval what comes back. So lets say that: var myReturnString = {"statusmsg":"