Hello everyone!
i would like to do script in this way:
Event.observe(window, "load", function()
{
$$('form').each
(
function(object)
{
Event.observe(object, "submit", preventDoubleClick);
}
);
});
function PreventDoubleClick(event)
{
var element = event.element();
submit_button = element.down("input[type='submit']"); // <---- This
doesn't work! $(this).down("input[type='submit']" doesn't work!
.....//disable button and reenable it later..
}
So, what i don't understand is why the parameter looses its conception
of DOM under it. I can obtain the CORRECT result doing $
('myform').down("input[type='submit']")
what is the concept i am ignoring??
thank you very much
--
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.