473,473 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Confusing W3C DOM with JavaScript

I am learning JavaScript along with the W3C DOM and web programming at the
same time. Just when I thought I had the basics figured out I had a wrench
thrown into my understanding.

When you go to Netscapes JavaScript specs page, they list pages for versions
1.3 through 1.5. I sat down to read the client side information but it is
labeled as "obsolete". But if I go to version 1.5 there is no information
about client side programming. In particular, opening windows, navigator,
etc.

Now, if you look at the W3C DOM, I can't find anything there about opening
windows(etc.). Opera's information talks about supporting "non-standard"
functions such as "windows", etc. But this "non-standard" statement,
coupled with Netscapes "obsolete" tag makes me think the ability to open
other windows is part of the W3C DOM, which it is not.

So...my beliefs now are that the W3C DOM should only be taken as
manipulation of documents and their contents while the "non-standard"
instructions [windows.open()] can be used for windows controls along with
their inherint cross-browser problems.

Or not?
Jul 23 '05 #1
3 1235
On Mon, 13 Sep 2004 19:08:14 -0500, drhowarddrfinedrhoward wrote:
I am learning JavaScript along with the W3C DOM and web programming at the
same time.
Do you have a full head of hair?
Take a photograph, later you will be
able to look at it, and remember. ;-)
When you go to Netscapes JavaScript specs page,
Netscape/Mozilla are still pushing the <EMBED>
element, even though it is never accepted as
valid HTML by the only reference on HTML that
matters, the W3C.
.... Now, if you look at the W3C DOM, I can't find anything there about opening
windows(etc.).
'Opening windows' implies either frames or pop-ups.

Neither of these is supported in HTML 4.01 strict,
though they are defined in HTML 3.2.

But you have a bigger problem if you target either
frames or new windows. You will be fighting against
what users want, and browser manufacturers are finally
giving them, complete control over their own browser
and desktop environment.
Or not?


My advice is, use the W3C to validate your HTML,
then test in the major browsers. Anything less
and you will end with 'another broken web-page'.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #2
drhowarddrfinedrhoward wrote:
I am learning JavaScript along with the W3C DOM and web programming
at the same time. Just when I thought I had the basics figured out I
had a wrench thrown into my understanding.

When you go to Netscapes JavaScript specs page, they list pages for
versions
1.3 through 1.5. I sat down to read the client side information but
it is labeled as "obsolete". But if I go to version 1.5 there is no
information about client side programming. In particular, opening
windows, navigator, etc.

Now, if you look at the W3C DOM, I can't find anything there about
opening windows(etc.). Opera's information talks about supporting
"non-standard" functions such as "windows", etc. But this
"non-standard" statement, coupled with Netscapes "obsolete" tag makes
me think the ability to open other windows is part of the W3C DOM,
which it is not.


Each browser has its own implementation of DOM, including the window object
as a part of it. Use these pages:

For Mozilla/Netscape: http://www.mozilla.org/docs/dom/domref/
For MSIE:
http://msdn.microsoft.com/workshop/a...l_reference_en
try.asp

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 23 '05 #3
"drhowarddrfinedrhoward" <dr************@sbcglobal.net> writes:
So...my beliefs now are that the W3C DOM should only be taken as
manipulation of documents and their contents
Correct. "DOM", in that context stands, for *Document* Object Model,
and it is the object model of the document only.

However, "DOM" is also customarily used about the entire host
environment in the browser, including the functionality that was
originally in Netsacape 2 and 3, and has been kept for backwards
compatability, even though it is not part of any standard.

W3C has defined DOM versions 1, 2, and 3. You will often see the
traditional, non-W3C, functionality referred to as DOM 0.
while the "non-standard" instructions [windows.open()] can be used
for windows controls along with their inherint cross-browser
problems.


Indeed.

Much of it is pretty "de facto" standardized, but each browser also
has its own "<browser> DOM" (e.g., "The IE DOM") where again, "DOM" is
being used without a clear definition of what "D" stands for (although
it could be "Domain Object Model", that would actually make sense).

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Marc | last post by:
Hi all, I was using Tkinter.IntVar() to store values from a large list of parts that I pulled from a list. This is the code to initialize the instances: def initVariables(self): self.e =...
2
by: David MacQuigg | last post by:
I'm setting up a large hierarchy of module packages and using a variable to select which of many alternative packages to import. For example, the variable 'config.modsel' points to a particular...
1
by: MLH | last post by:
mysql -h host -u user -p Running the above command expects actual values to be substituted for host and user. User I know about. That can be root. And now I know that this root has NOTHING to do...
4
by: Mark | last post by:
I'm struggling with how to properly name a specific subset of Properties in my classes. An example will illustrate it best. Let's say you have a class named Person with the code below. Each...
8
by: Glenn | last post by:
Hi! I've developed an app that displays multiple textbox and combobox fields (most of which are autopostback) on a form along with a submit button. My users find it confusing when they change...
1
by: Justin Richeson via .NET 247 | last post by:
(Type your message here) Ok...wow...this is really confusing, but I think it's similar towhat I'm trying to do. I'm looking to create a program thatwill search a "plugins" subdirectory (from where...
2
by: d3vkit | last post by:
Okay so I can NOT get my while loop to work. It's the most confusing thing I've ever come across. It was working fine and then suddenly, nothing. No error. The page just dies. I am using PHP5 with...
11
by: !truth | last post by:
Hi, i feel confused about the following program, and it's works to get a pointer-member's address. #define NETDEV_ALIGN 32 #define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1) ...
7
by: Andy B | last post by:
I saw this in the set accessor of a property: Set(ByVal value As DataSet) What exactly does the stuff in the () mean? VS complained about it not being there when I took it out not knowing...
0
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,...
0
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...
0
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...
0
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...
0
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.