Is it possable to include a part of a url file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jorge Phill
    New Member
    • Oct 2011
    • 1

    Is it possable to include a part of a url file?

    I want to show the part between <div id="play"> and </div> of http://example.com/file.html

    file.html's code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    </head>
    <body>
    <div id="play">
    blajfskhfsl
    </div>
    </div>
    </body>
    </html>
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    Interesting, you can try this, I am not sure about success, but it is suppose to .

    Create a hidden iframe and link the desired path, then onload of the iframe, then copy partitial data to your desired div searching by id

    you also can do this, but onload javascript attached with the secondary page may not work. use fopen to open the http link and then use xml parser to get all the data inside pay object. but the problem would be the missing javascript functions

    Comment

    Working...