Jarkko Laine wrote:
> 1) You have a dot between the getElementsByTagName call and its
> parameter list.
Typos..
> 2) The function returns an array of elements. You need to loop
> through them and disable them one by one.
Ok - makes sense.
> There is no function getElementByName for the document object. You
> might have meant getElementsByName. You should probably use the
> dollar function $('commit') [1] anyway, and use ID's instead of names.
Another typo ;)
I used $('commit').value = "blah" - and added id="commit" to my submit
tag - and now it works !
> Anyways, to find out what's wrong, I highly suggest getting the
> FireBug [2] Firefox extension. With it you have a lot easier to debug
> your scripts.
Already have it - but with above code (without typos obvioulsy) it did
not report any errors.
Thanks anyway !
/mich
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---