You are looking at posts that were written on September 7th, 2006.
Posted on September 7th, 2006 by arnljot.
Categories: java, javascript.
Just discovered that when you create an input element that is disabled in the template (disabled=”true”), then it’s ignored on submit even if it’s been enabled by client side javascript.
That’s a bug in my book ![]()
Posted on September 7th, 2006 by arnljot.
Categories: html, javascript.
Just discovered that FireFox version 1.5.06 doesn’t like reserved words in javascript functions
I had a radio button (input type=”radio” name=”rooms” onClick=”toggle(this);”/) which called a method with the signature “function toggle(radio)”.
This worked fine in IE 6, but in FireFox this didn’t execute at all, not even giving error messages.
Changeing the call and method signature to “onClick=’onOffShare(this);’” and “function onOffShare(room)” did the trick, and it now works in both browsers.
Seems that the lesson is to avoid potentially reserved words like “toggle” and “radio” in FireFox.