Forum Moderators: open

Message Too Old, No Replies

Javascript form validation bug for Macinstoh user only!

Problem with a javascript unreadable in a Mac computer

         

Me_Shiva

10:23 am on Jun 24, 2004 (gmt 0)

10+ Year Member



Hi, i'm too depressed!(sorry for my very bad english)
I've a big big and surprising problem with a code thaht runn veri well on IE PC, who make a blank page in a Macintosh with IE and the same browser configuration.
Take a look.
function valForm(){
if (document.xmail.newsLetter.checked==true){
document.xmail.newsLetter.checked=false;
document.xmail.sendMeAMail[0].status='';
document.xmail.sendMeAMail[1].status='';
document.xmail.sendMeAMail[2].status='';

}
}
//-----------
xmail is the name of my form, sendMeAMail is a radio button, and newsLetter is a checkBox.
When i delete this code, the page can be viewed with a mac, but with this simple fragment code, the page is invisible.
Please? do you know this problem? anybody can halp me?
Thanks a lot if yes!

Bernard Marx

12:14 pm on Jun 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



LONG SHOT: Remove this bit "-----------"

Me_Shiva

4:14 pm on Jun 24, 2004 (gmt 0)

10+ Year Member



Nono... it was used only in that message...
i don't understand what is the problem...
if you want, you can take a look at that webadress:
<No URLs, thanks. See TOS [webmasterworld.com]>

Thanks!

[edited by: DrDoc at 4:09 pm (utc) on June 25, 2004]

dcrombie

4:18 pm on Jun 24, 2004 (gmt 0)



From your page (which you shouldn't link to because it's against the TOS) it looks like the problem is that you have [0 ] instead of [0] as an index.

Doh! Ignore this answer - better one below

[edited by: dcrombie at 4:35 pm (utc) on June 24, 2004]

Span

4:29 pm on Jun 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you use comments tags, use two of them.
There's only the starting tag <!-- now. The Mac sees this as commenting out your whole page.

Rambo Tribble

2:15 am on Jun 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The value passed to the status property of a radio button should be a Boolean, true or false. Status, however, is an IE-only property. I would suggest you use the more universal checked property, to which status is a proprietary equivalent. Checked also takes a Boolean.

Me_Shiva

10:19 am on Jun 25, 2004 (gmt 0)

10+ Year Member



Hi Hi everybody and, really, from my entire Heart :
THANK YOU so much.

In fact, it appears that the problems result in that point.

The comments symbols : <----

Thanks for all, i have to say : i m NOT a newbes lika that with Flash and specelly actionScripting... so... if you have a problem, be SURE, that i a totally disponible to help you!
Bye, long life at that Forum!

[edited by: DrDoc at 4:10 pm (utc) on June 25, 2004]
[edit reason] tidying up [/edit]