On 31 August 2010 15:17, Johan Arensman <[email protected]> wrote:
> Hello,
>
> Why not do exactly what you say, compose all the parameters for the request
> and execute whenever you want:
>
> var url = '/foo.php';
> var ajaxOptions = {
>   option1: foo,
>   option2: bar
> }
>
> // do whatever you want..
>
> // even add something
> ajaxOptions.option3 = 'bla';
>
> // then execute
> new Ajax.Request(url, ajaxOptions); // uses the ajaxOptions
>
> Or did I not fully understand what you wanted?
>
> Greetings,
>  Johan
>

That was pretty much it. I couldn't find a way to put the Ajax.Request
"on hold" as such. Seems obvious now. Just build/run the request when
needed.

Thanks.

Richard.

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.


Reply via email to