Arnljot.com

javascript

Tapestry 4 oddity…

by arnljot on Sep.07, 2006, under 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 :-(

Leave a Comment more...

IE vs FireFox - js quirk

by arnljot on Sep.07, 2006, under 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.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!