On 4/10/06, Todd Ross <[EMAIL PROTECTED]> wrote:
> swap theElement and theResponse in your function
> NamedActionResponseHandler definition.  Your optionally bind()'ed
> parameters are passed first.

You are right, got that mixed up.

Although

> 'theResponse' as the returned xml still

puzzles me. This could only be if he didn't use bind().

Anyway, just as a reference that it does work generally:

function test(text, number) {
    alert(text + number)
}

var fun = test.bind(this, "hello");

fun(1); // alerts hello1

Bye,
  Martin
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to