Extract values from another HTML in javascript -
i developing wp8 browser check app. app loads below html pages in order:
a.html fades image several times, calculates(and displays) frame rate. b.html zooms in/out pre-written text, calculate speed(and displays) , other attributes.both of these work fine. need load resultant page(c.html) should extract calculated scores both a.html , b.html , display scores in tabular format.
to save content(in temp file) used:
<script type="text/javascript"> window.onload = function () { var sw : streamwriter = new streamwriter("html_results.txt"); sr.write('xyz"); //calculations done here sr.write (result); } </script>
unfortunately, not working. there no syntax error, text file after execution empty.
i know if best way extract values html pages. pls help.
<script type="text/javascript"> window.onload = function () { var sw : streamwriter = new streamwriter("html_results.txt"); sr.write('xyz',true); //calculations done here sr.write (result,true); //close streamwriter sr.close(); } </script>
maybe re-create paste error xyz misquoted 1 single , 1 double.
you leaving off boolean tells streamwriter whether or not overwrite.
and dont forget close.
sr.write('xyz',true);
javascript
No comments:
Post a Comment