pr0blems / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

can I get value of javascript with pq? #122

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I work parsing site with snoopy and pq.

ex. 
<script>
var vars = new Array();
vars.push(10);
vars.push(20);
vars.push(30);
</script>

can I read vars by pq?
or other methods?

Original issue reported on code.google.com by takes...@gmail.com on 24 Apr 2009 at 5:45

GoogleCodeExporter commented 8 years ago
phpQuery doesn't have any JavaScript interpreter, so no, you cant read JS 
variable
using pq.

Although you can find some information about PHP based JS interpreters in this 
post:
http://ejohn.org/blog/spicing-up-embedded-javascript/

I was thinking about integrating one of those into WebBrowser plugin, but i 
rather
don't believe that this could really work (i mean work well).

Please post such questions on the newsgroup next time:
http://groups.google.com/group/phpquery

Original comment by tobiasz....@gmail.com on 24 Apr 2009 at 6:25

GoogleCodeExporter commented 8 years ago
thank you for your comment. 
and thanks pq :)

Original comment by takes...@gmail.com on 24 Apr 2009 at 8:10