Forum Moderators: open

Message Too Old, No Replies

Netscp.70 not rendering DHTML when xhtml declared

DHTML not renderting with XHTML declaration

         

ninelobsters

2:23 am on Oct 29, 2002 (gmt 0)

10+ Year Member



I've added a repositionable window to a page I'm building and it lookks great when I don't declare a document type. As soon as I add one (xhtml transitional) the repositionable window disappears and seems to conflict with the rest of the page layou. This only happens in Netscape 7.0 - MSIE shows everything fine.

I've been all over these scripts to find a workaround, but need guru assistance.

Check it out:
<sorry, no personal URLs>

Thanx in advance.

[edited by: tedster at 2:45 am (utc) on Oct. 29, 2002]

zooloo

2:32 am on Oct 29, 2002 (gmt 0)

10+ Year Member



I think it's because your dhtml is MS jscript, not javascript proper. (I could be wrong here)

It doesn't work in Opera either. edit... Oh it does, but only after the whole page has loaded.

Solution...

a) Most people use MSIE, so ignore the problem.

b) Find another piece of script to do it, try [dhtmlshock.com...] at least they tell you if things only work on some browsers.

:) zooloo

dingman

2:48 am on Oct 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want people to help figure out what's wrong with it, you might post the relavent bits of Javascript, HTML, and CSS (if any) so we can look and play.

I'm mildly curious. Probably others are too.

lorax

2:49 am on Oct 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome both of you to WebmasterWorld!

I'm not sure how closely NN7 follows the DOM but if the change occurs simply because you use a different DOCTYPE then I'd guess you have a problem with your code. Have you validated the document?

BTW - Your handles are very interesting! :)

tedster

2:49 am on Oct 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ninelobsters, can you zero in on the parts of the code that become a problem when you put the DTD in place?

ninelobsters

3:09 am on Oct 29, 2002 (gmt 0)

10+ Year Member



Thanks everyone for taking a glance at this. I've been troubleshooting around the whole page and suspect it is infact the window script itself (<please, no personal URLs>). Unfortunately, the document declaration came after the the page was already laid out.
Both style sheets validate and there are some minor alerts when the actual page is validated to xhtml, but nothing glaring.
Removing the navigation doesn't have any effect either.
Unfortunately, I don't know my JavaScript inside and out, so pulling apart the window script has been breaking my head. I thought maybe I had been staring at it too long and was missing something simple.

Thanks again for taking a look.

[edited by: tedster at 3:21 am (utc) on Oct. 29, 2002]