views:

30

answers:

0

This question has two parts.

First, I need to isolate two strings of text inside a span with the class "test01". Here is what the span looks like:

<span class="test01">
<table width="100%" cellspacing="0" cellpadding="0">
<tbody><tr><td>
<div id="ctl00_ctl07_pnTopBar">
        <a href="/Member/MyHome.aspx">My Account</a>&nbsp;&nbsp;<a href="/faqs.html">Help</a>&nbsp;&nbsp;<a href="/Cart.aspx">Cart</a>&nbsp;&nbsp;<a href="/contact.html">Contact Us</a>&nbsp;&nbsp;<a href="/disclaimer.html">Disclaimer</a>
</div>
</td>
    </tr><tr>
<td align="right">
        [email protected] (UserId: 123456) 
        <a href="javascript:__doPostBack('ctl00$ctl07$EasyLoginView1$lv$EasyLoginStatus$ctl00','')" id="ctl00_ctl07_EasyLoginView1_lv_EasyLoginStatus">Logout</a>
</td></tr>
</tbody></table>
</span>

How would I go about isolating the email address, and the ID number (which is not always six digits long), and declare them as variables 'email' and 'uid' ?

Part two- I am also wondering how one would use javascript to write each of these variables to respective cookies.