473,654 Members | 3,062 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FAQ Topic - What is the document object model? (2008-10-23)

-----------------------------------------------------------------------
FAQ Topic - What is the document object model?
-----------------------------------------------------------------------

This is the collection of objects provided by each browser.
Basically, any object in the window hierarchy is part of the
DOM. This means that ` document.writel n() `,
for example, is not an
ECMAScript method but is, in fact, a method provided by the DOM.
The DOM has been standardised by the World Wide Web Consortium
(W3C); however, like all W3C standards, browser support is not
yet complete. Most cross-browser coding problems come from
slightly different implementations of the DOM in the different browsers.

http://jibbering.com/faq/index.html#onlineResources

http://www.w3.org/DOM/faq.html

http://www.w3.org/DOM/
--
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javas cript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by http://www.pair.com.

Oct 22 '08 #1
8 1424
In comp.lang.javas cript message <48************ ***********@new s.sunsite.
dk>, Wed, 22 Oct 2008 23:00:02, FAQ server <ja********@dot internet.be>
posted.

FAQ <http://jibbering.com/faq/index.htmlis full of links of the form
href='index.htm l#jScript'

That means that a saved copy of the FAQ has links which refer to
index.html in the directory in which it has been saved.

If those "index.html " were removed throughout, those links would refer
to the appropriate place in the saved FAQ.

The link href="http://www.jibbering.c om/faq/index.html" should of
course remain.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon. co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demo n.co.uk/- w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demo n.co.uk/programs/- see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
Oct 23 '08 #2
Dr J R Stockton wrote:
In comp.lang.javas cript message <48************ ***********@new s.sunsite.
dk>, Wed, 22 Oct 2008 23:00:02, FAQ server <ja********@dot internet.be>
posted.

FAQ <http://jibbering.com/faq/index.htmlis full of links of the form
href='index.htm l#jScript'
And the "index.html " can be safely removed. And it will work in IE6.

That means that a saved copy of the FAQ has links which refer to
index.html in the directory in which it has been saved.

If those "index.html " were removed throughout, those links would refer
to the appropriate place in the saved FAQ.
Yep.

The link href="http://www.jibbering.c om/faq/index.html" should of
course remain.
Yep.

Will apply changes.

Garrett

--
comp.lang.javas cript FAQ <URL: http://jibbering.com/faq/ >
Oct 24 '08 #3
Dr J R Stockton wrote:
The link href="http://www.jibbering.c om/faq/index.html" should of
course remain.
There is no good reason why. In fact, the "index.html " should be removed
according to W3C recommendations . The default document that is index.html
does not need to be and should not be explicitly referred to (e.g. in case
the technology behind it changes).

Where necessary, server-side redirection should be set up to keep existing
references to the FAQ working while promoting a new URI concept that
provides ways of referencing the FAQ and FAQ sections that are easier to
remember. Consider, for example, <http://jibbering.com/faq/notes/instead
of <http://jibbering.com/faq/faq_notes.html> .
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Oct 24 '08 #4
Thomas 'PointedEars' Lahn wrote:
Dr J R Stockton wrote:
>The link href="http://www.jibbering.c om/faq/index.html" should of
course remain.

There is no good reason why. In fact, the "index.html " should be removed
according to W3C recommendations . The default document that is index.html
does not need to be and should not be explicitly referred to (e.g. in case
the technology behind it changes).

Where necessary, server-side redirection should be set up to keep existing
references to the FAQ working while promoting a new URI concept that
provides ways of referencing the FAQ and FAQ sections that are easier to
remember. Consider, for example, <http://jibbering.com/faq/notes/instead
of <http://jibbering.com/faq/faq_notes.html> .
404
>
You probably meant to link to:
http://www.jibbering.com/faq/faq_notes/faq_notes.html

The URI is not very memorable.

If any sort of URL rewriting were to be used, the documents' links
(anchors, css, et c) would all need full root <a href="cookies.h tml"so
to avoid 404.

PointedEars

--
comp.lang.javas cript FAQ <URL: http://jibbering.com/faq/ >
Oct 25 '08 #5
In comp.lang.javas cript message <49************ **@PointedEars. de>, Fri,
24 Oct 2008 20:16:04, Thomas 'PointedEars' Lahn <Po*********@we b.de>
posted:
>Dr J R Stockton wrote:
>The link href="http://www.jibbering.c om/faq/index.html" should of
course remain.

There is no good reason why.
As is common, you have failed to understand the point, SpitzenOhren.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demo n.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)
Oct 25 '08 #6
dhtml wrote:
Thomas 'PointedEars' Lahn wrote:
>Dr J R Stockton wrote:
>>The link href="http://www.jibbering.c om/faq/index.html" should of
course remain.
There is no good reason why. In fact, the "index.html " should be removed
according to W3C recommendations . The default document that is index.html
does not need to be and should not be explicitly referred to (e.g. in case
the technology behind it changes).

Where necessary, server-side redirection should be set up to keep existing
references to the FAQ working while promoting a new URI concept that
provides ways of referencing the FAQ and FAQ sections that are easier to
remember. Consider, for example, <http://jibbering.com/faq/notes/instead
of <http://jibbering.com/faq/faq_notes.html> .

404
Right, the madness of it is even worse:

<http://jibbering.com/faq/faq_notes/faq_notes.html>
You probably meant to link to:
http://www.jibbering.com/faq/faq_notes/faq_notes.html
Right, the madness goes even further.
The URI is not very memorable.
One of my points exactly.
If any sort of URL rewriting were to be used, the documents' links
(anchors, css, et c) would all need full root <a href="cookies.h tml"so
to avoid 404.
I am talking about redirection, not rewrite; redirection would by itself not
need any changes in the source code at all (although once established, it
would be wise to use the new URIs instead).
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Oct 26 '08 #7
Dr J R Stockton wrote:
Thomas 'PointedEars' Lahn posted:
>Dr J R Stockton wrote:
>>The link href="http://www.jibbering.c om/faq/index.html" should of
course remain.
There is no good reason why.

As is common, you have failed to understand the point, SpitzenOhren.
Maybe you should have found a better wording then, Doc. For the statement
as it is, is a bad recommendation.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Oct 26 '08 #8
Thomas 'PointedEars' Lahn wrote:
dhtml wrote:
>Thomas 'PointedEars' Lahn wrote:
>>Dr J R Stockton wrote:
The link href="http://www.jibbering.c om/faq/index.html" should of
course remain.
There is no good reason why. In fact, the "index.html " should be removed
according to W3C recommendations . The default document that is index.html
does not need to be and should not be explicitly referred to (e.g. in case
the technology behind it changes).
Yeah, I don't see why index.html should be there either.
>
I am talking about redirection, not rewrite; redirection would by itself not
need any changes in the source code at all (although once established, it
would be wise to use the new URIs
It might be better to have /faq/notes/ and have the current directory
redirect to that. I don't have access over the faq_notes directory.
--
comp.lang.javas cript FAQ <URL: http://jibbering.com/faq/ >
Oct 27 '08 #9

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

Similar topics

2
2126
by: Filippo Bettinaglio | last post by:
Hi, I use, VS2005 C# I have a Windows Forms UserControl hosted within Internet Explorer According to MIcrosoft documentation: http://msdn2.microsoft.com/en-us/library(d=robot)/ms171712.aspx or
0
1199
by: Jarod_24 | last post by:
I've tried the WebBrowser in the System.Windows.Forms namespace, but it dosen't work when you instanciate an object from a class. It needs a Form to live in to work. My application allready has the ability to parse html. It send webrequests, get the html, extracts links, detects <base href=""> tags, <iframe>, <frame> tags and so on. The only problem is when the html contain loops, document.write() calls stuff defined in the Document...
9
1434
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - What is the document object model? ----------------------------------------------------------------------- This is the collection of objects provided by each browser. Basically, any object in the window hierarchy is part of the DOM. This means that document.writeln(), for example, is not a javascript method but is, in fact, a method provided by the DOM....
0
8290
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
8707
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
8482
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
8593
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...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4149
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
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.