PDA

View Full Version : DIV tag giving problems in javascript on netscape4.7


madhwal
05-14-2003, 02:37 PM
I have 2 frames.From frame1 i am passing certain data to frame2,on click of a hyperlink.
In my html code i am setting anchor tag inside DIV which is in a TD tag. Now if i give position as Relative..the links come in proper place but javascript does not work..i.e i am trying to disable the link when clicked andit does not happen.
however in absolute position it works fine but for data which comes dynamically ..how to set the links?

any help ASAP is appreciated

A1ien51
05-14-2003, 04:03 PM
Netscape $.X does not support div tags unless they are absolutely positioned

what I would do is either, not worry about N4.X browsers like I do or

surrond it with a layer tag and give it a slighty different name

look at the source code of this

http://www10.brinkster.com/a1ien51/JavaRanch/innerhtmltext.htm

It will show you how I used the layer tag are coded it for Netscape 4

A1ien51

madhwal
05-15-2003, 06:32 AM
Originally posted by A1ien51
Netscape $.X does not support div tags unless they are absolutely positioned

what I would do is either, not worry about N4.X browsers like I do or

surrond it with a layer tag and give it a slighty different name

look at the source code of this

http://www10.brinkster.com/a1ien51/JavaRanch/innerhtmltext.htm

It will show you how I used the layer tag are coded it for Netscape 4

A1ien51



can we use DIV tags in Table for netscape?

A1ien51
05-15-2003, 06:55 AM
for netscape 4.X you need to use a layer tag, unless it is absolutely positioned......

the easiest is to use the layer tag,,,,,,for Netscape 6+ browsers, they can use the div tag

A1ien51

madhwal
05-15-2003, 06:56 AM
Originally posted by A1ien51
Netscape $.X does not support div tags unless they are absolutely positioned

what I would do is either, not worry about N4.X browsers like I do or

surrond it with a layer tag and give it a slighty different name

look at the source code of this

http://www10.brinkster.com/a1ien51/JavaRanch/innerhtmltext.htm

It will show you how I used the layer tag are coded it for Netscape 4

A1ien51



can we use DIV tags in Table for netscape?

madhwal
05-15-2003, 09:14 AM
Originally posted by A1ien51
Netscape $.X does not support div tags unless they are absolutely positioned

what I would do is either, not worry about N4.X browsers like I do or

surrond it with a layer tag and give it a slighty different name

look at the source code of this

http://www10.brinkster.com/a1ien51/JavaRanch/innerhtmltext.htm

It will show you how I used the layer tag are coded it for Netscape 4

A1ien51



can we use DIV tags in Table for netscape?

Roy Sinclair
05-15-2003, 04:18 PM
can we use DIV tags in Table for netscape?

Yes as long as the div or it's content isn't expected to be dynamic, if you want it to be dynamic then it's not really *in* the table.

Why are you even bothering with that antique, bug infested browser anyway?