Forum Moderators: open

Message Too Old, No Replies

IE displays info, NS doesn't

suggestions?

         

orangetwist

4:18 pm on Mar 30, 2004 (gmt 0)

10+ Year Member



Hi all -

I've got a site at <Sorry, no personal URLs. See TOS [webmasterworld.com]> that will display graphics and pricing info below the text boxes in ie but not ns. I thought I'd covered my bases but it's still not showing up. Any suggestions? Thanks in advance

[edited by: tedster at 7:15 pm (utc) on Mar. 30, 2004]

tedster

7:17 pm on Mar 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forum, orangetwist.

Step number one - validate your markup:

[validator.w3.org...]

My guess would be you have incorrect table tags - <tr> and <td> problems. But run the W3C validator to find out. Once you get a clean bill of health there, then we can look further if the problems comtinue on NN.

orangetwist

10:48 pm on Mar 30, 2004 (gmt 0)

10+ Year Member



Thanks tedster, it found a laundry list of GL code it didn't like. And I thought it'd save me time coding...

Sorry about posting the url.

surfin2u

10:51 pm on Mar 30, 2004 (gmt 0)

10+ Year Member



Here's a very simple trick to try: search your html code for table and keep track of the number of tables that you open with with <table...> and tables that you close with </table>. Very often the problem that netscape chokes on is a table that you forgot to close with a </table>.

orangetwist

6:14 am on Mar 31, 2004 (gmt 0)

10+ Year Member



thanks surfin2u for the suggestion -- I'll be sure to check the table tags. Since javascript isn't my strong suit, I'm wondering if the problem doesn't lie there. The code:

function changeTextBlock(whichPane) {
if (whichPane.selectedIndex == -1)
return false;

var newDescription;
switch (whichPane.name) {
case "MainCategory" :
newDescription = MainCategory[whichPane.selectedIndex].DescriptionText;
break;
case "SubCategory" :
newDescription = eval("SubCategory" + whichPane.form.MainCategory.options[whichPane.form.MainCategory.selectedIndex].value + "[" + whichPane.selectedIndex + "].DescriptionText");
break;
case "TwoCategory" :
newDescription = eval("TwoCategory" + whichPane.form.SubCategory.options[whichPane.form.SubCategory.selectedIndex].value + "[" + whichPane.selectedIndex + "].DescriptionText");
break;
}
if (NS4) {
eval(layerRef + '["description"].document.open()');
eval(layerRef + '["description"].document.write(newDescription)');
eval(layerRef + '["description"].document.close()');
} else if (NS6) {
eval(layerRef + '("description").innerHTML=newDescription');
} else {
eval(layerRef + '["description"].innerHTML=newDescription');
}
}

var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer == 4);
var NS6 = (navigator.vendor == "Netscape6");
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var Opera = (window.opera)

if (NS4) {
layerRef="document.layers";
styleSwitch="";
} else if (IE4) {
layerRef="document.all";
styleSwitch=".style";
} else if (NS6 ¦¦ Opera) {
layerRef="document.getElementById";
styleSwitch=".style";
}