<font face="arial" size="2"> Although if he's really concerned about Netscape 4, he'll have to check for that and use document.layers instead...<br /><br />Peter<br /><br /></font>
                <font face="Tahoma, Arial, Sans-Serif" size="2">
                                <b>From</b>: Flįvio Gomes <a href="mailto:flavio@economisa.com.br">flavio@economisa.com.br</a><br /></font>
                <br />
                <div id="collect">blah blah blah </div>
                <br />
                <div id="result">blah blah blah </div>
                <br />Change it all to:<br /><br />function showHide(divToShow, divToHide)<br />{ document.getElementById(divToHide).style.visibility = 'hidden';<br />document.getElementById(divToShow).style.visibility = 'visible';<br />}<br /><br />SkyScanner escreveu:<br /><br />> I haven't asked what kind of browser the guy was using yet. I am <br />> certain, though, that javascript was NOT turned off, because the error <br />> checking routine produces a confirm box:<br />> <br />> var fRet = confirm('Are you sure that you have all values entered <br />> correctly?\n\nYOU ONLY GET ONE CHANCE TO DO THIS RIGHT !!');<br />> if (fRet == false) {return;}<br />> <br />> which he reported seeing OK, also clicking on and making it disappear.<br />> <br />> The code I used to turn things on and off is rather old - its stuff I <br />> just paste in, and haven't heard of a problem with it until now:<br />> <br />> /* 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<br />> <br />> /* Determines the browser name and browser version */<br />> var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));<br />> <br />> /* 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;}<br />> <br />> if (isNS4||isIE4||isNew) {<br />> docObj = (isNS4) ? 'document' : 'document.all';<br />> styleObj = (isNS4) ? '' : '.style';<br />> }<br />> <br />> dom = eval(docObj + '.' + 'collect' + styleObj);<br />> dom.visibility = "hidden";<br />> dom = eval(docObj + '.' + 'result' + styleObj);<br />> dom.visibility = "visible";<br />> <br />> <br />> and then, later on in the body, I have my two DIVs:<br />> <br />>
<div id="collect">blah blah blah </div><br />>
<div id="result">blah blah blah </div><br />> <br />> I hope that's enough to spot where my error is, but I would rather <br />> just replace the whole lot with something bomb-proof.<br />> Perhaps what Diego suggested?<br />> <br />> Tim in England<br />> <off topic="">yes, no longer in Ireland, I am currently volunteering at <br />> the Pestalozzi International Village for 3 months, then travelling in <br />> Africa for the next 8 months - see my blog site <br />> www.mapability.com/travel <http: travel="" www.mapability.com="">I am just <br />> trying to get everything on my site 'fully automatic' before I leave - <br />> hahaha is that hoping too much?! </http:></off>BR>> <br />><br />> ----- Original Message -----<br />> *From:* Peter Brunone <?xml:namespace prefix = mailto /?><mailto:peter@brunone.com><br /><mailto:javascript@latech.edu>><br />> Hi Tim (not top 'o the mornin' anymore?)...<br />><br />> That should work. Can you show us the actual code, and perhaps<br />> share with us what kind of browser/os/etc this user is using? <br />> Does he have Javascript enabled? Is there an error message, what<br />> is it, etc?<br />><br />> Cheers,<br />><br />> Peter</mailto:javascript@latech.edu></mailto:peter@brunone.com>