Jump to content


Photo

Help with Simple Function.


  • Please log in to reply
No replies to this topic

#1 thatoneguy

thatoneguy
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 14 August 2006 - 12:29 AM

Hello all,

I am new to scripting and I am embarking on a rookie project. Accordingly, this question may be remedial but I would really appreciate the help.

I want to write something that will extract  pretermined lines of source code from a page and the place that data at a predetermined point within a HTML file. I know it can be done but I dont know where to start.

THANKS.

Example:

<input title="Check to Remove" type="checkbox" name="chk3569687">
<input title="Check to Remove" type="checkbox" name="chk3569518">
<input title="Check to Remove" type="checkbox" name="chk3569474">

Data to be extracted:

chk3569687
chk3569518
chk3569474

Then place in a seperate text document like this

<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'trpItemBuild.aspx?item=4348569&do=r')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>chk3569687</td>
<td></td>

            <td>click</td>
<td>chk3569518</td>
<td></td>

            <td>click</td>
<td>chk3569474</td>
<td></td>

</tr>






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users