Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Peardrop CMS 0.2.3
  • CommaFeed 0.0.1
  • Squash
  • Pick-a-Color 1.1.5
  • MVIS Security Center 1....
  • EasyZoom 1.0.3
  • jQueryGantt
  • IMDBPHP 2.1.8
  • Dynamic WordPress Form ...
  • PathFinding.js 0.4.1
  • Home > Scripts > Internet, Browsers and Tools

    responseHTML

    download button


    Downloads: 625  Tell us about an update
    User Rating:
    Rated by:
    Good (3.7/5)
    19 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Xul.fr | More scripts
    www.xul.fr
    Freeware 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    PHP
    April 16th, 2008, 09:24 GMT
    C: \ Internet, Browsers and Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    responseHTML description

    responseHTML script loads another page using responseHTML attribute.

    There is no responseHTML attribute belong responseText and responseXML in XMLHttpRequest, but this is not a problem. If we want to get data from another HTML page and insert it into the displayed page, this can be achieved easily.

    The responseXML attribute holds an XML document DOM can access, and to provide the equivalent for HTML we need just for a div tag and a JavaScript function that extends Ajax or the framework we are using.

    The principle
    - A variable or a div tag to store the other web page.
    - In the second case, the content is not be displayed, as we make use of the display attribute of CSS with the none value.
    - Once the other page assigned to the variable or inserted into the tag , its content is accessible with DOM's methods.
    - Actually, only the content of the body tag is taken from the page, as html and head tags do not have to appear inside the body of the page.
    - A JavaScript function - It makes use of Ajax to read the other web page as a plain-text, into the responseText attribute and it extracts the content of the body tag. With three indexOf calls and one slice call, the content is extracted. Regular expression could be used alternatively.



    TAGS:

    page load tool | ajax utility | page refresh tool | page | load | tool

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM