SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2009
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can a web parser differentiate between static and dynamic text on a webpage?

    can a web parser differentiate between static and dynamic text on a webpage?
    for example there is a string on a webpage Hello "Fantastic Four"

    In this "Hello" is a static data and "Fantastic Four" is a dynamic data (say being populated form a database value)

    Is it possible for web parser to detect whcih is a static and dynamic content?

  2. #2
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Unless something is being modified in the browser via client scripting (like Javascript) then what gets rendered in the browser IS static ... dynamic stuff determined by server scripting is static by the time it's sent to the browser.
    Ian Anderson
    www.siteguru.co.uk

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not unless you wrap the dynamic data and tell the parser how to recognise it.
    Code HTML4Strict:
    <p>Hello <q class="my-dynamic-data">Fantastic Four</q>.</p>
    Birnam wood is come to Dunsinane

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A program reading it sees the entire webpage as static.

    However, if it requests the same page again, and it is different, it could interpret the different parts as being dynamic.


Tags for this Thread

Bookmarks

Posting Permissions

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