[Javascript] Safari issues or better saying poor programming issues

MEM talofo at gmail.com
Wed Mar 31 03:34:46 CDT 2010


2010/3/30 MEM <talofo at gmail.com>

> Hello all,
>
> I'm newbie into javascript and with this speed, I will always be... so I'm
> sorry for this strange solution to work with disabled and enabled inputs, if
> you can share a better way, I can digg in.
> Anyway, can I please have your help:
>
> I have issues on Safari display for the following code:
>
> http://pastebin.com/imenHbWB
>
> The linked js file contains to the document above has the following lines:
>
> function activaInput()
> {
>     document.candidaturaOnline.txtOutro.disabled=false;
> }
>
> function desactivaInput()
> {
>     document.candidaturaOnline.txtOutro.disabled=true;
> }
>
>
>
> What it doesn't do is, it doesn't allow the user to write on the input box
> with the id txtOutro, when the radio button with the id outro has focus.
>
> I'm on Safari 4.0.5
>
> Both, the HTML and CSS are validated on w3c.
>
>
> What could be the issue?
> Márcio
>
>
>

By changing the onFocus event listener (can we call it like this?) TO a
onClick event listener on the radio buttons, it works cross browser.

Why is this?

Best regards,
Márcio


More information about the Javascript mailing list