On 4/6/06, Grzesiek Slusarek <[EMAIL PROTECTED]> wrote:
> Hi all. I my apps I need to use Ajax.Request Object. One of the object 
> options is onComplete fuction which looks like this:
> funcion onComplete (originalResponse)
> {
> ..some operations
> }
> I need pass to function one more parameter, how to do it? is is possible? I 
> can't use AJAX Updater because result of Ajax Call is uploaded to the div 
> that I defined earlier, and in my situations I don't know id of my html 
> element. I need to do something like this:
> funcion onComplete(originalResponse,param1)
> {
> if (param1 != something)
>     $('result').value = originalRequest.responseText;
> else
>     $('resultSecond').value = originalRequest.responseText;
> }
> How to achieve this?
>

What is the need ? Where does param1 come from ?
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to