Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ugh Netscape is Hell (top. , window. self. cant change href)

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
I hate netscape alot, unfortunatly the customer I am writing the web application for , most of the higher guys appear to love it (god knows why) , in any case, there are two main issues that makes it very hard for me to get it to be nice. (note I had it running lovely in IE , no probs at all until I had to make it NS compatible)

1) Offsets, its annoying, not even the *margin properties seem to work most of the time, it it throws off my setup, like the top frame will have a few pixels of white space and such (where as in IE I manage to get all the pages right to the last pixel) , and since this web application has to be designed in a such a way that it'll fit in 800x600 (tho some state employees have complained about it not working in 640x480, and have to tell them we are not supporting that low of a resolution for any of the products)

so if someone knows a very good way to get offsets to be the same in NS as they are IE that should help that.

2) the one that seems to kill the functionality more than the looks. Trying to make the middle frame allow to update the top frame

currently I have something like this
[tt]
window.top.QRTop.location.href = &quot;Wiz_QR_Title.asp?status=<%=Server.URLEncode(&quot;Select a Report Method&quot;)%>&quot;[/tt]

which works fine in IE

though originaly I was doing
top.frames[0].location = which was working perfecly in IE,
so was self.parent (and self.parent.parent) and so forth, basically every combination I tried (even window.Framename) did not appear to work in NS

so if anyone can help with this, that would be great.


IE is 5.5, and the Targeted Netscape is 4.76, tho would like something that'll work on all 4.* versions of NS , we dont support NS6, so thats not an issue Karl Blessing
aka kb244{fastHACK}
 
I got #2 solved by pure luck

it turns out that if I were to do

[tt]
<Script language=&quot;Javascript&quot;>
<!--
top.frames[0].location = &quot;someURL&quot;;
//this is what I was doing originally
-->
</Script>
[/tt]

it'll work fine in IE, but I Found out , that due to the &quot;<!--&quot; and &quot;-->&quot; netscape ignores this, and does not process it (as if it were normal HTML), most &quot;smart&quot; browsers will still process this, because I know it is almost a standard to put those comment blocks around Javascript , because of the possibility of a non-javascript supported browser seeing the code plainly on the window.


though my co-worker still needs help figuring out #1 (the whole offset deal, cant seem to make it look good in NS) Karl Blessing
aka kb244{fastHACK}
 
I hate frames in NS as well.

What pixels of white space? Where? If you're talking about a border around the frame, or if you're talking about using % widths in your tables instead of absolutes, thats one thing. Or are you talking about some frame properties that can't be controlled with HTML ?

 
I'm talking about margins

i can set topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 in IE , and tables, or other things will start at the most absolute zero pixel (no space at top or sides) , where as NS always has least a 5 pixel or more gapping margins, which throws off making it look good on both NS and IE, among other alignment/offsets problems Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
Netscape 4.x simply uses a different syntax for margin spacing (back when it was being developed there wasn't yet a standard for a lot of this stuff). Try

marginwidth=0 marginheight=0

(Actually, you will find that Netscape needs it to be at least one pixel for whatever reason) for a good example of this see the IBM site (
Another way to do this is to set the frames to not have borders, not just the pages contained in the frames. The syntax would look like: (again different syntax works for IE and Netscape)

Code:
<FRAMESET framespacing=0 frameborder=no marginheight=&quot;0&quot; marginwidth=&quot;0&quot; border=0 rows=&quot;*,42&quot;>
<FRAME  framespacing=0 frameborder=no marginheight=&quot;0&quot; marginwidth=&quot;0&quot;  name=&quot;f1&quot; src=&quot;Pictures~main.html&quot; >
<FRAME  framespacing=0 frameborder=no marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;f2&quot; src=&quot;whatever.html&quot; scrolling=no>
</FRAMESET>
 
I set even all of those already as well Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
Well... why don't you let us see a sample of where you are trying this?
 
I will have to cut/paste some html later in the day if you want to see a sample, as I cannot point you directly to it (developmental server IP addy, unknown to public) Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top