Jump to content
vick

need help of table in IE

Recommended Posts

vick

Hi I can get table details from below code but i can not get array .

Msgbox shows table id and number of rows correct.

it says invalid object. can you help me why?

Local $open_site=_IEGetObjById($oIE,"_ctl0__ctl39__ctl0__ctl1_wgWorkItems__baseGrid")
      MsgBox($MB_SYSTEMMODAL, "",$open_site.id &"||"& $open_site.rows)
    
    If @error Then
        MsgBox($MB_SYSTEMMODAL, "test", @error)
    EndIf
    Sleep(2000)
     Global $aArray=_IETableWriteToArray($open_site)
    If @error Then
        MsgBox($MB_SYSTEMMODAL, "testyyy", @error)
    EndIf
    Sleep(2000)
    _ArrayDisplay($aArray)

 

thanks,

Share this post


Link to post
Share on other sites
vick

how to get row and column value as html tag is table

Share this post


Link to post
Share on other sites
vick
<table id="_ctl0__ctl39__ctl0__ctl1_wgWorkItems__baseGrid" rules="cols" copytable="true" copy="true" width="100%" height="100%" cellspacing="0" bordercolor="#AAAAAA" border="1" bgcolor="WhiteSmoke">
 
<tbody>
 
<tr bgcolor="Black" align="Left">
 
<tr valign="Top" bgcolor="DarkBlue">
 
<tr valign="Top" bgcolor="#DFE4E4">
 
<tr valign="Top" bgcolor="#F7F7F3">
 
<tr valign="Top" bgcolor="#DFE4E4">
 
<tr valign="Top" bgcolor="#F7F7F3">
 
<tr valign="Top" bgcolor="#DFE4E4">
 
<tr valign="Top" bgcolor="#F7F7F3">
 
<tr valign="Top" bgcolor="#DFE4E4">
 
<tr valign="Top" bgcolor="#F7F7F3">
</tbody>
</table>

this html source

Share this post


Link to post
Share on other sites
vick

i do not get you. what else information you want i can paste right away.

Share this post


Link to post
Share on other sites
vick
<table id="_ctl0__ctl39__ctl0__ctl1_wgWorkItems__baseGrid" rules="cols" copytable="true" copy="true" width="100%" height="100%" cellspacing="0" bordercolor="#AAAAAA" border="1" bgcolor="WhiteSmoke">
 
<tbody>
 
<tr bgcolor="Black" align="Left">
 
<tr valign="Top" bgcolor="DarkBlue">
 
<td valign="Top">
 
<font color="White">
 
<a href="javascript:__doPostBack('_ctl0$_ctl39$_ctl0$_ctl1$wgWorkItems$_baseGrid$_ctl3$_ctl0','')">
<font color="White">></font>
</a>
</font>
</td>
 
<td valign="Top">
<font color="White">467071</font>
</td>
 
<td valign="Top">
<font color="White">ON - Site ID 5557 Not Connecting>24hrs</font>
</td>
 
<td valign="Top">
 
<td valign="Top">
 
<td valign="Top">
 
<td valign="Top">
 
<td valign="Top">
</tr>
 
i am looking for to get bold text from this table

Share this post


Link to post
Share on other sites
Danp2

It's not working as you desire. For us to help further, we need to be able to reproduce the situation. Either provide a URL or post the page's complete HTML. If you can't post this due to restricted access, etc. then find another publicly accessible site that demonstrates the same symptoms / situation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×