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 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DOM works with which files

    i need to search for certain files

    asp
    html
    htm
    stub

    i was wondering which files can use DOM method on...

    i need to search meta tags for particular attributes and their values

    can I use DOM on these files?
    I know I can ues it on HTML and HTM files but the rest...??

    thanks

    allison

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    You can use DOM in any web file you can use javascript in. (clientside, at least.)
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for your answer..

    i have another question

    does this mean that i can have an ASP page from which I will open an html page and then using DOM methods i will retrieve a key/value pair from the <meta> tags

    I need to create dynamic links and the path is in those html file within the <meta> tags...

    is this possible or am i barking up the wrong tree?

    thanks
    allison

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Hmm, I think the DOM is the wrong approach to this, you should do some string work on them in ASP instead. You see, even though DOM can be used serverside, it's not the most efficient technique to use in that many cases. DOM is better for clientside handling of documents, especially in user-document interactions.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #5
    New Coder
    Join Date
    Aug 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok thanks for the tip

    i guess i will try to open then using TextStream object and then read each file line by line until i find the information i need to make the path

    bye
    allison


  •  

    Posting Permissions

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