User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,531 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,338 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1322 | Replies: 3
Reply
Join Date: Aug 2006
Posts: 2
Reputation: nava is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nava nava is offline Offline
Newbie Poster

Help problem with drop down SELECT box.

  #1  
Mar 5th, 2008
Hi

Hope is the correct forum, let me know if I should move it.

For work I need to use an internal website the problem I have is that since I upgraded IE7 I cannot see it correctly, looking at the source I can see the script below

<label for="supGrpSrch">Search on:&nbsp;</label></td><td><select name="supGrpSrch" onchange="javascript:setOrigImage(document.forms[0].descImg1)" ><option value="0" label="supGrpSrch0" >Group</option><option value="1" label="supGrpSrch1" >Group description</option><option value="2" label="supGrpSrch2" >Supplier number</option></select>

So I think I should see the Value not the label value.

Below is what I can see in IE7

[IMG]http://img248.imageshack.us/img248/275/scripyz3.th.jpg[/IMG]

Below what I should see taken from Firefox.

[IMG]http://img248.imageshack.us/img248/1359/correctuy2.th.jpg[/IMG]

Thanks in advance.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Location: New York state
Posts: 464
Reputation: ShawnCplus will become famous soon enough ShawnCplus will become famous soon enough 
Rep Power: 5
Solved Threads: 72
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: problem with drop down SELECT box.

  #2  
Mar 5th, 2008
In Internet Explorer 7, the 'label' property is equivalent to the innerText property in Firefox. So Firefox ignores the label property and uses innerText (Group) whereas IE sees the label property(supGrpSrch0) and overrides the innerText.
GCS d- s+:+ a-->? C++(++++) UL+++ P+>+++ L+++ !E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
Reply With Quote  
Join Date: Aug 2006
Posts: 2
Reputation: nava is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nava nava is offline Offline
Newbie Poster

Re: problem with drop down SELECT box.

  #3  
Mar 5th, 2008
HI

thanks for that,

Is there a way to fix that in IE7, other than editing the page that I know won't be done, maybe with a plug-in or any other way.

Thanks
Reply With Quote  
Join Date: Apr 2005
Location: New York state
Posts: 464
Reputation: ShawnCplus will become famous soon enough ShawnCplus will become famous soon enough 
Rep Power: 5
Solved Threads: 72
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: problem with drop down SELECT box.

  #4  
Mar 5th, 2008
Yeah, take out the label attribute. It's not serving any purpose in firefox or IE
GCS d- s+:+ a-->? C++(++++) UL+++ P+>+++ L+++ !E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 5:22 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC