Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Sat, 12 Jul 2008 05:26:00 -0700,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


Page content   
There is some html page in the Web. It has a table.
How can I use the html table content using JScript ?
date: Sat, 12 Jul 2008 05:26:00 -0700   author:   Cyol

Re: Page content   
Cyol wrote:
> There is some html page in the Web. It has a table.
> How can I use the html table content using JScript ?

As with other elements in a HTML document, you can the table by id using
   var table = document.getElementById('tableId');
if it has a unique id attribute value, or you can find all table 
elements using
   var tables = document.getElementsByTagName('table');
   var table = tables[0];
A table element object then has properties like tBodies, tHead, tFoot, 
rows, see http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-64060425, 
which you can use to access table sections like the head or the foot or 
a tbody or one of the rows.
Each row element object has a cells collection to acccess the cells.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Sat, 12 Jul 2008 16:19:41 +0200   author:   Martin Honnen

Re: Page content   
Dear Martin Honnen.
Thank you. 
Could you give me the manner for binding for example
http://www.ss.com/daw.html to
"document" (document.getElementById("tableId")) ?
date: Sat, 12 Jul 2008 08:27:00 -0700   author:   Cyol

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us