Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Small Javascrip...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 35568 of 36380
Post > Topic >>

Small Javascript Question

by Mtek <mtek@[EMAIL PROTECTED] > May 11, 2008 at 07:02 PM

Hi,

I have a form which puts out a hidden DIV like this:


<DIV id='invalid' style="display:none"><img src="../images/
flyer.jpg"></DIV>

So, the DIV is hidden until the customer performs some actions.  Once
they do, I make the DIV appear like this:

do***ent.getElementsByName('custphoto')[0].style.display="";

That works fine in IE.  But Firefox gives this error:

Error: do***ent.getElementsByName("custphoto")[0] has no properties

Why does that not work in Firefox, but does in IE?   Can I make it
work in both browsers???

Thank you!
 




 2 Posts in Topic:
Small Javascript Question
Mtek <mtek@[EMAIL PROT  2008-05-11 19:02:29 
Re: Small Javascript Question
RobG <rgqld@[EMAIL PRO  2008-05-11 19:40:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 23:30:53 CDT 2008.