search for: ajobj

Displaying 1 result from an estimated 1 matches for "ajobj".

Did you mean: jobj
2006 Jun 14
2
Global variables and onComplete in Ajax.Request
...low, but it never gets set. Everything with the request is fine and there is data in the "json" var in "setMakeVars", but it''s almost like "setMakeVars" doesn''t have access to global vars. var gljson; var url = ''/my/path/here''; var ajobj = new Ajax.Request( url, { method: ''get'', onComplete: setMakeVars }); function setMakeVars (transport) { var json = eval(transport.responseText); gljson = json; } alert(gljson); // is undefined Has anyone else run into this? Any ideas what I c...