[solved] Javascript in Safari
Posted: Wed Jun 21, 2006 8:18 am
I've got the following occuring several times in my code:
And whilst it works fine and in FF (And i think IE - I wouldn't know seeing as we don't have a single PC in the building) safari is having none of it. The code runs and everything, but the expression always seems to evaluate as false.
From what I gather, the layout engine in Safari doesn't handle the 'checked' property. Does anybody know a workaround?
I'm tempted to just let Safari users rot, but sadly the boss wants to be able to test the website on his iMac...
EDIT: I was wrong - it wasn't the Javascript itself, it was the fact it wasn't being called at all.
Apparantly, Safari doesn't support onChange for radiobuttons. Silly mac browsers...
Code: Select all
document.orderform.location[0].checkedFrom what I gather, the layout engine in Safari doesn't handle the 'checked' property. Does anybody know a workaround?
I'm tempted to just let Safari users rot, but sadly the boss wants to be able to test the website on his iMac...
EDIT: I was wrong - it wasn't the Javascript itself, it was the fact it wasn't being called at all.
Apparantly, Safari doesn't support onChange for radiobuttons. Silly mac browsers...