Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    Wichita, KS
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Several DOM questions

    First off, hey! Found your boards by mistake actually. Glad I did though. Hopefully this'll be a wothwhile venture.

    I have several DOM related questions. If anyone can find comprehensive (and relatively simple) articles that explains how to do each, I'd be appreciative. Just post a link beside the number so I know which article is leading me where (ie: 1. Creating / Deleting items [insert article url here]) Please note, that all of these questions refer to a browser rendering the page in XHTML1.0 Transitional / Strict with the proper DTD to force standards compliancy. [Note: Any numbers in Italics and Bold, has been answered.]

    1. Creating / Deleting items

    2. What are nodes, what do they have to do with transversing the DOM, and in what situations are they best used?

    3. Finding mouse coords after page has been scrolled.
    I've seen several examples attempt to find if the page has been scrolled by using document.body.scrollLeft || window.offsetLeft (or similiar ideas if those are wrong hopefully that is enough to give you an idea) . What does the standards say about this? Which would you recommend for 5th generation browser and upward compatibility.

    4. What is EventBubbling, and how is it used / why is it disabled by some scripts.

    5. What is the correct way to access the right-mouse button in standards compliant browsers?

    6. Event Listeners, how do I add them and what can I do with them? What limitations are there?

    Ok, that's enough questions for the time being. Hopefully I haven't bored you to tear :-D

    Edit: Good grief, in 3 articles ScottAndrew.com has answered most of my questions, in a way that "I" understand them. Well for those of you looking for easy to read and understand tutorials. My recommendation goes to (you guessed it) ScottAndrew.com

    Edit 1: Thanks Brainjar for the awesome tutorials. =) Thanks to everyone for their responses, helped a lot.

    Leithakor
    Last edited by Leithakor; 12-09-2002 at 03:56 PM.
    James
    Leithakor vanwa ilya eile, lat vanwa leithakor.
    Translatation: Freedom over all else, Honor over Freedom

  • #2
    New Coder
    Join Date
    Sep 2002
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    Rather than start an essay, it's probably better to point you to the Mozilla DOM documentation - in particular the PDF file is very useful.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you can see past my limited writing skills, you might find these helpful:

    Nodes - http://www.brainjar.com/dhtml/intro/

    Mouse coordinates - http://www.brainjar.com/dhtml/drag/

    Events - http://www.brainjar.com/dhtml/events/

  • #4
    New Coder
    Join Date
    Dec 2002
    Location
    Wichita, KS
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I appreciate the documentation link. I'll keep that one. Maybe it'll help solve my last question.

    Now how did I miss those tutorials on your site brainjar? Dunno but everytime I went there I somehow missed it. Much appreciated


    Leithakor
    James
    Leithakor vanwa ilya eile, lat vanwa leithakor.
    Translatation: Freedom over all else, Honor over Freedom

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    scottandrew.com rocks
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #6
    New Coder
    Join Date
    Dec 2002
    Location
    Wichita, KS
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Lol I agree, when it can answer 5 of my 6 questions in a way I understand it. Then yeah it rocks =)


    BTW - Thanks Brainjar, you answered my final question about mouse coords and page scrolling. Wooo lotsa stuff learned. Now to put it to use.
    James
    Leithakor vanwa ilya eile, lat vanwa leithakor.
    Translatation: Freedom over all else, Honor over Freedom


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •