Navigating text string that contains HTML of a page as DOM object?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Navigating text string that contains HTML of a page as DOM object?

From: Alex <a.r.austin@gmail.com>
Date: Tue Mar 21 2006 - 04:49:49 CET

Hello.

First, with AJAX I will get a remote web page into a string. Thus, a
string will contain HTML tags and such. I will need to extract text
from one <span> for which I know the ID the inner text.

Is it possible to access in this way "string variable".getElementByID()
somehow?

Thank you.

PS: Just thinking of a proper/efficient way to extract the information
from such a string. I am open to other ideas. I could load that page in
IFRAME and get my access to DOM that way, yet probably it is not an
eligant solution.

Thank you again.
Received on Mon May 1 04:17:39 2006