Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: WWW::Scripter eval of JQuery

by tobyink (Canon)
on Mar 05, 2012 at 23:06 UTC ( #957989=note: print w/replies, xml ) Need Help??

in reply to WWW::Scripter eval of JQuery

jQuery has a lot of stuff that assumes it's running inside a traditional desktop browser. WWW::Scripter emulates that environment pretty well, but still not quite well enough to run jQuery. It might get there eventually, but it's not there yet.

There are plenty of actual desktop browsers (e.g. Konqueror - though I haven't tried its WebKit module) that can't run jQuery fully.

Looked at WWW::Mechanize::Firefox?

Replies are listed 'Best First'.
Re^2: WWW::Scripter eval of JQuery
by ait (Hermit) on Mar 06, 2012 at 02:52 UTC

    Thanks for the thorough explanation... I had the feeling that evaling JQuery might have been probably overkill for what I really need. Yep, I looked at mechanize::firefox but it seems to require firefox running with a GUI. Do you know if there is any way to run firefox without GUI or run the Gecko engine as a library, I mean much like Spidermonkey? Maybe using Xvfb or maybe Firefox itself has the ability to run GUI-less like other GUI-intensive apps?, for example Inkscape which has a console/batch mode (e.g. to convert SVG to PDF).

      Not tried this with Firefox, but many years ago I did something along these lines with to generate PDF files from various other formats. I used TightVNC Server to create a spare X11 display and ran on that.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://957989]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2020-02-20 18:56 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (92 votes). Check out past polls.