Script for working with Generated HTML
A fictitious excerpt...
<span class="outgoing hq">These <a href="#" onmouseover='this.T_WIDTH=150;return escape("Freighter 13 <br> Interceptor 3 <br> ")' class="hq">units </a>
<a href="" title="Freighter 13Interceptor 3"> </a>from grid Primary Alpha [A:BDD:UR] arrives at grid Poopy Poo [T:AAD:TYD]. Its task:
<a href="#" onmouseover='this.T_WIDTH=150;return escape("Carry: <br /> Res1: 157834 <br /> Res2: 75469 <br /> Res3: 25000")' class="hq">HQ </a>
<a href="#" title="Carry: Res1: 157834 Res2: 75469 Res3: 25000"></a>.
Most of the above code is dynamic and generated. Some is static.
This line is static <a href="#" title="Carry: Res1: 157834 Res2: 75469 Res3: 25000"></a> except for the generated numeric value of Res1, 2, and 3.
I figured XPath would be the best way to get at those values. So I came up with element = document.evaluate("//th[@class='outgoing hq']", document, null, XPathResult.BOOLEAN_TYPE,null).singleNodeValue;
now I'm stuck. Also, will XPathResult.BOOLEAN_TYPE only return TRUE or FALSE and not the value?
Once I can get those values into a script I can do the rest fine (I think).
By bubberz in forum ASP.NET
Last Post: 08-23-2005, 03:19 PM
Last Post: 03-03-2005, 04:41 AM
By Sunny in forum VB Classic
Last Post: 04-26-2002, 07:23 AM
Last Post: 09-13-2001, 08:08 AM
Last Post: 08-08-2001, 10:48 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center