473,947 Members | 1,906 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

document.body.o ffsetTop returns null(always)

pragathik
21 New Member
hi,

i have a problem with document.body.o ffsetTop and document.body.o ffsetLeft always returns null in my code in IE6.
how can I get the values???? please suggest
Feb 4 '08 #1
3 4187
acoder
16,027 Recognized Expert Moderator MVP
If IE6 is in strict mode, some of the properties are allocated to document.docume ntElement. See Viewport properties.
Feb 4 '08 #2
pragathik
21 New Member
If IE6 is in strict mode, some of the properties are allocated to document.docume ntElement. See Viewport properties.
what is strict mode in IE6. is there any setting like that in Options?
Feb 5 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
what is strict mode in IE6. is there any setting like that in Options?
Strict mode and quirks mode would depend on the doctype used. Are you using a strict doctype?
Feb 5 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
2667
by: Russell Mangel | last post by:
What would be the best way to parse this XML document? I want to avoid using XMLDocument. I don't know if I should use XMLTextReader, or Xpath classes. There is only one element <MessageStore> element in the document, "always" at the end of the document. There will be thousands of <Messages> elements, "always" before <MessageStore> element. 1st Step
1
1299
by: genc ymeri | last post by:
Hi, I'm trying to check fo rthe updates but always I get the below error message. I did all the windows updates first and tried to do this but I got the same problem. I have tried to several PCs from work and from home but I got the same message again(so it is not the LAN or net configuration). Any idea ???? Thank yoiu in advance.
5
1883
by: Gernold Schneider | last post by:
I have a managed code function calling a unmanaged code function which returns a "bool". Obviously the return value is always "true", if i am not running the code in the debugger. If i run the code in the debugger, everything works fine. Is this a known bug? Example:
2
5039
by: Trapulo | last post by:
I read Context.Request.ServerVariables("HTTP_HOST") from an asp.net page, but I've the problem that it returns always "localhost". I've tried to call the web site as http://server/site (server as netbios over tcp, not dns... in this net there isn't a dns ) http://ip/site from a remote pc, but nothing. I read always localhost. I've tried to stop default web site and create a new site pointing to my
5
3702
by: simon | last post by:
<html> <head> <script language="vbscript"> sub window_onload msgbox document.getElementsByName("name1").length end sub </script> </head> <body> <div name="name1">testDiv</div>
5
2287
by: ernestb08 | last post by:
I have a Customers Table with the following field names. C_FirstName C_LastName C_MiddleI .. .. .. .. ..
7
1717
by: rynato | last post by:
I have a lengthy 'markup.php' file which consists of functions which take as input the various attribute values of HTML tags and spit out the HTML tag. My problem is that the function for <inputis interpreting '0' as null and because I've written the functions so that they don't write out the attributes which have null value, it doesn't generate a 'value="0"' attribute for <input>. Simplified example: function input($value=null) {
1
4180
by: JR | last post by:
Dim PrintDialog As New PrintDialog Dim result As DialogResult = PrintDialog.ShowDialog() If result = Windows.Forms.DialogResult.OK Then 'I get always cancel(2) as an result and nothing happens end if Why do I aways have cancel as an result. It shout popup but it doens on vista 64 Thanxs
28
1891
by: rahul | last post by:
#include <stdio.h> int main (void) { char *p = NULL; printf ("%c\n", *p); return 0; } This snippet prints 0(compiled with DJGPP on Win XP). Visual C++ 6.0
0
10163
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9982
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11165
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11348
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10692
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9888
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6332
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4538
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3543
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.