RE: [Rails-spinoffs] Re: Global variables and onComplete in Ajax.Request

2006-06-15 Thread Gregory Hill
> > 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; > > } >

[Rails-spinoffs] Re: Global variables and onComplete in Ajax.Request

2006-06-14 Thread Kevin Old
On 6/14/06, Kevin Old <[EMAIL PROTECTED]> wrote: Hello everyone, Just a note, I have to pass my JSON in the response body. I'm aware of the X-JSON header, but am passing too much data to use it. No problem and I have code that has it working well. While I'm getting my JSON data back and can d