Thanks for the help, now I have...
function JSON_REQUEST()
{
new Ajax.Request('process.php?mode=json', { method:'get', onSuccess:
function(transport,json){myvar = json;}});
}
JSON_REQUEST();
alert(myvar);
myvar is not defined <- Firebug
Ignoring the naming conventions, could somebody set this newbie on the
right track? Literally been beating my head against the wall trying to
get something which looks rather simple to be accessible to my entire
program.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---