<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT size=3>I haven't asked what kind of browser
the guy was using yet. I am certain, though, that javascript was NOT turned off,
because the error checking routine produces a confirm box</FONT>:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>var fRet = confirm('Are you sure that
you have all values entered correctly?\n\nYOU ONLY GET ONE CHANCE TO DO THIS
RIGHT !!'); <BR>if (fRet == false) {return;}</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial>which he reported seeing OK, also clicking on and making
it disappear.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>The code I used to turn things on and off is rather old -
its stuff I just paste in, and haven't heard of a problem with it until
now:</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>/* Browser sensing */<BR>/* Set up
boolian variables to record the browser type */<BR>var isNS4 = 0;<BR>var isIE4 =
0;<BR>var isNew = 0;<BR>var docObj, styleObj, currObj</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>/* Determines the browser name and
browser version */<BR>var brow = ((navigator.appName) +
(parseInt(navigator.appVersion)));</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>/* reassign variable depending on the
browser */<BR>if (parseInt(navigator.appVersion >= 5)) {isNew =
1}<BR> else if (brow == "Netscape4") <BR> {isNS4 =
1;}<BR> else if (brow == "Microsoft Internet Explorer4")
<BR> {isIE4 = 1;}</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>if (isNS4||isIE4||isNew)
{<BR> docObj = (isNS4) ? 'document' : 'document.all';<BR> styleObj =
(isNS4) ? '' : '.style';<BR> }</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>dom = eval(docObj + '.' +
'collect' + styleObj);<BR>dom.visibility = "hidden";<BR>dom = eval(docObj
+ '.' + 'result' + styleObj);<BR>dom.visibility = "visible";</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial>and then, later on in the body, I have my two
DIVs:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#008000><div id="collect"> blah blah blah
</div></FONT></DIV>
<DIV><FONT color=#008000><div id="result"> blah blah blah
</div></FONT></DIV>
<DIV><FONT color=#008000></FONT> </DIV>
<DIV><FONT face=Arial>I hope that's enough to spot where my error is, but I
would rather just replace the whole lot with something bomb-proof.</FONT></DIV>
<DIV><FONT face=Arial>Perhaps what Diego suggested?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Tim in England</FONT></DIV>
<DIV><FONT face=Arial><off topic>yes, no longer in Ireland, I am currently
volunteering at the Pestalozzi International Village for 3 months, then
travelling in Africa for the next 8 months - see my blog site <A
href="http://www.mapability.com/travel">www.mapability.com/travel</A> I am just
trying to get everything on my site 'fully automatic' before I leave - hahaha is
that hoping too much?! </off topic></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=peter@brunone.com href="mailto:peter@brunone.com">Peter Brunone</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, October 09, 2006 7:01
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> re: [Javascript] DIV
visibility</DIV>
<DIV><BR></DIV><FONT face=arial size=2>Hi Tim (not top 'o the mornin'
anymore?)...<BR><BR> That should work. Can you show us
the actual code, and perhaps share with us what kind of browser/os/etc this
user is using? Does he have Javascript enabled? Is there an error
message, what is it,
etc?<BR><BR>Cheers,<BR><BR>Peter</FONT></BLOCKQUOTE></BODY></HTML>