GetElementById working in FF but not in IE. WHY?





Coupon Codes, Rebates & Free Shipping Codes
PCmover - $15 Off with Coupon Code S6ch2
muvee Reveal takes your photos, video and music
and automatically creates your own highly polished
personal muvee.
Visit the Nuance store today
Download a Free Trial of Acronis True Image 2009
Visit the CA US Store!
10% Off - 1 YR - Trend Micro Internet
Security 2009 - Coupon Code: TrendIS.

Get 10% off any purchase at MacSpeech.com
when you use the coupon code DICTATE10!
Get PowerDirector 7 Ultra from Cyberlink - optimized
for Intel Core i7

I have a table cell with a picture as its background, and a checkbox. Once the checkbox is selected, change the background.

Here is the cell

TD COLSPAN="2" VALIGN="middle" ALIGN="center" ID="meetandgreet" style=" background-image:url(SELECTED/meet.jpg); background-repeat: no-repeat;" NOWRAP><INPUT TYPE="checkbox" ID="meet" VALUE="Include Meet & Greet" onchange="flipimg('meetandgreet', 'meet', 'meetselected.jpg', 'meet.jpg')"></TD>

Here is my JavaScript >

function flipimg(idcell, idfield, imgNameOn, imgNameOff)

{

if(document.getElementById(idfield)....

{

document.getElementById(idcell).st... = "url(SELECTED/" + imgNameOn + ") no-repeat";

}

else

{

document.getElementById(idcell).st... = "url(SELECTED/" + imgNameOff + ") no-repeat";

}

}

This works perfectly in FireFox for me but refuses to do anything in IE.

GetElementById working in FF but not in IE. WHY?download windows media player

IE has pathetic JavaScript support. You might want to check another method. Also try validating your script. In Firefox, get the Web Developer and Firebug addons and then you'll have some good JS debugging tools.


FirstPrevious12NextEnd

More Related Questions and Answers ...
  • Why don&#039;t Microsoft allow customisat..
  • How do i change my browser from IE to Firefox..
  • How to send message to server with IE via MSM..
  • Why does ipod split up compilation albums ie ..
  • Slow Performance on Dell Inspiron 1150 when I..
  • Yahoo stock data is loading fine in IE but no..
  • What medical condition means you cant get dru..
  • Is there a toggle tab option for IE?
  • How can I hide "view source" in IE?
  • Where to find ( bookmarks page ) for mozilla ..
  • My navigation bar has different paddings in I..
  • If you were having trouble with your IE and Y..
  • How do I enforce Proxy settings via IE to Com..
  • How to change the home page in IE?
  • Why isn&#039;t overflow:visible working i..
  • Firefox is more safe and faster than IE?
  • How can i delete addresses from my IE address..
  • I want to move more favorites from IE to Fire..
  • Not responding problem, i need to use ie for ..

  • The information post by website user , we not guarantee correctness.