On 4/6/06, Grzesiek Slusarek <[EMAIL PROTECTED]> wrote:
> > What is the need ? Where does param1 come from ?
>
> Well that was only definition of the funcion, where it come from?
> I want to put param1 in the Ajax.Request object:
> var myAjax = new Ajax.Request(
>                         url,
>                         {method: 'get',
>                         parameters: pars,
>                         onComplete: showResponse;param1
>                         });
> Something like code above?

Something like code below?

function showResponse(originalRequest, param) {
}
var myAjax = new Ajax.Request( url, {
   onComplete: function(originalRequest) {
      showResponse(roriginalRequest, param1);
   }
});
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to