Thanks a lot Sanford. With your /4 the name of the button is sent to the function. But it leads to another Problem. If i use "$$('INPUT[type=submit]').addEvent('click', ..." Firebug tells me an Internal 500-Error and jobliste.html?isAjax=1 isn't called. But that shouldn't be a problem, as "$$('form').addEvent('submit', function(e)" is working as intended if i give the "name" to the form instead of to the button. And with this pointing to the form, this.getElementsByTagName("input.submit") should work to disable the submit-button, or am i wrong?
Jan Am Montag, 11. Juni 2012 01:23:32 UTC+2 schrieb Sanford Whiteman: > > > trying to pass the name of the submit-button to the function, name > > is null in the function. > > That's because `this` is the FORM element, where you added the event. > If you want the *INPUT* to be `this`, then add the event to the > button. > > http://jsfiddle.net/2sVhz/4/ > > Despite the fact that we don't literally do element.onClick=... > anymore, you have to still think of the event as a property of the > element by default. Just because you don't see the FORM doesn't mean > it doesn't have its own events to capture.. > > -- S. > >