responseHTML

Category: PHP - Miscellaneous

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. Date: 16 May, 2012


Page Load Tool - Ajax Utility - Page Refresh Tool - Page - Load - Tool

Homepage: http://www.xul.fr/

Developer: Xul.fr

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

The AJAX Tag Library is a set of JSP tags that simplify the use of Asynchronous JavaScript and XML (AJAX) technology in JavaServer Pages.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


AJAX Image Dump System (AIDS) is an image dump system written in PHP and Javascript using MYSQL databases, with AJAX functionality using the jquery library and the MOD_REWRITE Apache module to shorten down URL-addresses.

developer Developer: SourceForge.net
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Flex AJAX Framework is a comprehensive AJAX Framework supported with PHP plugin, for building responsive web pages, dynamic contents, and realtime validations.

developer Developer: SourceForge.net
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Auto linl to other page.

developer Developer: Steve S
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


Marvelous is a open source content management system (CMS) with strong approach to new web technologies and dynamic content.

developer Developer: Marvelous CMS project page
license License: GNU General Public License (GPL)
operating systems Operating System: OS Independent (Written in an interpreted language)


Content slider class provides sliding effect for switching between different pages or contents.

developer Developer: Arturs Sosins
license License: BSD License
operating systems Operating System: Not Available


FCookie class can manage SharedObjects (aka Flash cookies) using swf file provided in package.

developer Developer: Arturs Sosins
license License: BSD License
operating systems Operating System: Not Available


tgcRSS allows reading data out of RSS-feeds.

developer Developer: tool-garage.de
license License: Freeware
operating systems Operating System: All


Flash Menu is a customizable menu bar.

developer Developer: Flash-here.com
license License: Freeware
operating systems Operating System: All