[solved] Javascript in Safari

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
SpiderMonkey
Forum Commoner
Posts: 85
Joined: Fri May 05, 2006 4:48 am

[solved] Javascript in Safari

Post by SpiderMonkey »

I've got the following occuring several times in my code:

Code: Select all

document.orderform.location[0].checked
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...
Post Reply