PDA

View Full Version : :: frustrating NS4 problem (big surprise)


babelfish
07-17-2002, 10:35 AM
http://www.simonsgroup.com/test/newweb2/linkstesting3.htm

ok if u go there u will see an almost finished template for a page

now, for some reason NS b0rks when u try to document.write the submenus - even tho the code it outputs for the 1st one is fine - it just doesnt write the closing docuement.write :(

<script>submenustart('Links')</script>
<td nowrap><a href="#"> Link 1 </a></td>
<td nowrap><a href="#"> Link 2 </a></td>
<td nowrap><a href="#"> Link 3 </a></td>
<td nowrap><a href="#"> Link 4 </a></td>
<td nowrap><a href="#"> Link 5 </a></td>
<td nowrap><a href="#"> Link 6 </a></td>
<script>submenuend()</script>

basically i have a few of these - which write the div info and rollovers in the first one and closing stuff in the 2nd one - now this only happens when i have position:absolute in a css file that points to the position of the submenu layer

this is really doing my head in - every new design i come up with seems to be getting screwed up by the lameness of NS - if ppl cant write a proper app they should just not bother ! :mad:

mordred
07-17-2002, 02:20 PM
Netscape 4 has a known (or feared) weakness with positioned elements in combination with tables, and even more weaknesses when JavaScript shall write them out. Just think of the "ttyle" weirdness when you try to document.write() a string that contains the word style=""...

Honestly, I don't think I can be of much help here. Does that also happen when you directly insert the source code instead of writing it dynamically with JS? If yes, perhaps a server-side solution might be worth considering... then there would be plenty of opportunities.

And yes, NN4 is a PITA when it comes to CSS. The main problem is IMHO not Netscape itself, NN7 (or Mozilla) is a superior product, only NN4 users refrain from upgrades somehow... or they have no choice, as in uni networks.

premshree
07-17-2002, 02:21 PM
For NS4, you require layers and the use the document.write() method to the layers. Are you sure you are using it the right way?

Why don't you post the code?
And I agree with your views on NS4; why do people even use it?

requestcode
07-17-2002, 03:15 PM
Hi babelfish,
Tried your link, but it did not work. Could you post it again?

babelfish
07-17-2002, 04:13 PM
lol - i finally got it all working :) i still dont know the issue but its 100% guaranteed a bug in NS as all i did was change the order of various items

btw this is going SSI at some point as boss wants it incorporating into a lotus dbase

link is:

http://www.simonsgroup.com/test/newweb2/menu/template2.html

i know the links are all left aligned on NS4 and i have no idea whay - ive tried numerous methods and they all screw up :)

but as long as the 1% of ppl can actually view links then i dont care - but b4 the whole menu was b0rked! :)

brothercake
07-17-2002, 05:11 PM
I'm using ns4.08 on Win2K and it all looks and functions correctly :)

babelfish
07-17-2002, 05:12 PM
Originally posted by brothercake
I'm using ns4.08 on Win2K and it all looks and functions correctly :)

the sublinks are centered on your version? sweet !

not that i care any more - the 1% of visitors we get can see poo as far as i care as long as thery can read the content :)

Cloudski
07-17-2002, 08:44 PM
*sigh* Why can't all the browsers just come up with this universal code that would be understood by all???? :D

Oh well, I still make pages for IE mainly... Since, I check what what browser my page is viewed in.. and all use IE... and the fact that I have NO clue how to make a page for NS :)