Is anyone among you aware of JavaScript?

For everything that's not in any way related to PureBasic. General chat etc...
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Is anyone among you aware of JavaScript?

Post by merendo »

Typical for this f***in' piece of crap called Internet Explod..., err, Explorer: I have just spend hours coding a great JavaScript, tested it on my Mozilla and Konqueror Web Browser (using Linux) and the script worked just fine, just fine!!! Then I tested it on the IE - didn't work, of course. How come? Now I've got a little question. Is somebody of you aware of JavaScript and would mind to check a little JavaScript code (about fiveteen-twenty lines) for some errors which could make IE fail to execute the script properly?

If you think you can help me, please have look at the script code and at the form which uses the script. http://www.benedikt-franz.de/js/

It's intention is to show all locations that belong to a town in the lower list, when the user changes the town in the upper list.

Would be very nice. It's just the crap that about 95% of all people surfing the web use IE. If this percentage wouldn't be that high, I just wouldn't care that the IE cannot execute this script.

merendo

--
Edit: Published the link.
Last edited by merendo on Mon Jun 21, 2004 1:23 pm, edited 1 time in total.
The truth is never confined to a single number - especially scientific truth!
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

why not just post your code and maybe someone will see an error or give some help?
Image Image
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Post by merendo »

Well, good idea. But einander is checking the code at present, lets wait if he finds something...
The truth is never confined to a single number - especially scientific truth!
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Actually, seems to me that the latest versions of mozilla (best) and derivatives and of IE are all pretty true to w3c and emca standards.

Both have some small deviations when you get down and dirty with DOM, etc, though.
@}--`--,-- A rose by any other name ..
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

merendo,

I just spent lots of time making JavaScript pages compatible with both Mozilla and IE, and I think I have an answer for you.

Change:

Code: Select all

<select name="town" onChange="CheckTown(this.form.town.options[this.form.town.options.selectedIndex].value)">
to:

Code: Select all

<select name="town" onChange="CheckTown(this.form.town.options[this.form.town.options.selectedIndex].text)">
and it should work OK in both browsers.

Regards,
Eric
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Post by merendo »

Sorry, I just didn't know that there is a difference between text and value...

I have changed the code now. But I can't test it on IE at present. Would you mind to visit the page again and see if it works now? With my Mozilla, it still works.

Thank you very much for your help. Perhaps I will need it a bit more often... :wink:

Thank you very much again, ebs!!!!
The truth is never confined to a single number - especially scientific truth!
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

merendo,

I checked the new page and it works the same (for me!) in IE and Mozilla.

Glad I could help,
Eric
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Post by merendo »

Yes, you could help, indeed. Thank you very much again.

merendo
The truth is never confined to a single number - especially scientific truth!
Post Reply