Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-02-10 : 05:38:21
|
Hi all!does anyone have any clues why doesn't the OnChange evnt fire when i change the value of it??<SELECT ID='contact_type' NAME='contact_type' class='ComboBox' onChange="alert('blagblab')"> <OPTION VALUE=" "/> <OPTION value=Besuch>Besuch</OPTION> <OPTION value=Email>Email</OPTION> <OPTION value=Fax>Fax</OPTION> <OPTION value=Internet selected >Internet</OPTION> <OPTION value=Messekontakt>Messekontakt</OPTION> <OPTION value=AdditionalContactFax>Nachfassen (Fax)</OPTION> <OPTION value=AdditionalContact>Nachfassen (Telefonisch)</OPTION> <OPTION value=Sonstiges>Sonstiges</OPTION> <OPTION value=Telefon>Telefon</OPTION></SELECT> i'm all out of ideas and been on google whole morning and yesterday afternoon...Go with the flow & have fun! Else fight the flow |
|
Seventhnight
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2005-02-10 : 07:27:19
|
how are you changing the value? with code or with mouse?Corey"If the only tool you have is a hammer, the whole world looks like a nail." - Mark Twain |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-02-10 : 07:46:15
|
mouse and keyboard, nothing fancy...i just want aa alert to pop up when the selected item changes.Go with the flow & have fun! Else fight the flow |
|
|
AndyB13
Aged Yak Warrior
583 Posts |
Posted - 2005-02-10 : 07:58:32
|
Are you using IE?Just tried your script and IE 6 SP2 doesnt like it, but when i lowered my security settings for that file it worked. So theres nothing wrong with the script - its the browserAndyBeauty is in the eyes of the beerholder |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2005-02-10 : 08:07:43
|
Make "onchange" all lowercase. JS is case sensitive, all of the event handler names are lowercase, sometimes mixing case causes problems. IE in particular will accept incorrect cases instead of throwing an error, and treat them as expando properties instead of mapping them to the proper handler. |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-02-10 : 08:11:53
|
ok i found the bug... had document.all['contact_type'].onchange = "...somestuff..."in another file that overrode the handler in the tag.thanx for all the help guys.Go with the flow & have fun! Else fight the flow |
|
|
AndyB13
Aged Yak Warrior
583 Posts |
Posted - 2005-02-10 : 08:15:37
|
Nope still doesnt work in IE. I thought the correct syntax was onChange, onClick, onMouseOver etcBeauty is in the eyes of the beerholder |
|
|
|
|
|