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: Sun, 11 Mar 2007 21:37:06 -0700,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


pElemColl->get_length( &celem ) returns length = 0 but shouldn't   
In html:

<td rowspan="2" width="65" align="center">
<a href="/property_listing.php?id=1499567&type=residential&category=buy">
<img src="http://images.abc.com/PROPERTY/Thumbnls/02631234.JPG" width="65" 
height="65" border="0" alt="Click to View Property" /></a> </td>

In VC 2003:

	if(SUCCEEDED(pElem->get_children(&pElemDisp)))
	{
		CComQIPtr<IHTMLElementCollection> pElemColl( pElemDisp );
		if (pElemColl != NULL)
		{
			if(SUCCEEDED(pElemColl->get_length( &celem )))

****** celem returns zero on <td> element,  Why????

I wonder there may be some hidden escape character to prevent the program to 
read the elements attached to element <td>, i.e. <a> and <img>.

But if I download and save the html page, the program can read all elements.

Anyone please help.
date: Sun, 11 Mar 2007 21:37:06 -0700   author:   paul388

Google
 
Web ureader.com


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