Re: Positioning using DHTML and the XHTML doctype.

by David Jones <dvjones(at)ksbe.edu>

 Date:  Wed, 23 Apr 2003 09:05:08 -1000
 To:  hwg-techniques(at)hwg.org
 In-Reply-To:  hotmail
  todo: View Thread, Original
On 23 Apr 2003, at 6:42, Peter-Paul Koch wrote:

> >>Problem is, this function only works if you REMOVE the
> >>XHTML DOCTYPE...it does not appear to be a W3C-DOM
> >>standard.
> >>
> >>I've found it difficult tracking down a useful
> >>alternative.  Any suggestions on a way to find the x and
> >>y coordinates without giving up the DOCTYPE declaration?
> >
> >Oh my God, you're right. Doesn't work in IEMac, Mozilla
> >and Safari with the doctype. It does work in IE6Win and
> >Opera with the doctype, I might add.
> >
> >This is extremely stupid, since doctypes have nothing to
> >do with JavaScript.
> >
> >I'm afraid there is no solution to your problem.
> 
> Never mind, found the solution. You must add 'px' when
> writing the found position into the top and left of the
> element to be placed there.

This is one point where IE's non-compliance with 
standards is the problem.

David
dvjones(at)ksbe.edu
 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.