Bug 380645 - Better javascript support in internal browser
Summary: Better javascript support in internal browser
Status: RESOLVED FIXED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 04:41 UTC by RKWard Team
Modified: 2022-04-10 07:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RKWard Team 2011-12-07 04:41:09 UTC
-- Originally posted by (AT sourceforge.net): burfee --

-- This ticket was imported from http://sourceforge.net/p/rkward/feature-requests/111 on 2017-05-31 14:48:58 +0100 --
Hi,
I was trying this tutorial http://jeffreybreen.wordpress.com/2011/07/14/r-one-liners-googlevis/ and i noticed that the graph doesn't appear. in rkward web browser. If i run R from the terminal and run the same script it works great when it starts in mozilla.

Script:
library\(googleVis\)
data\(Fruits\)
M = gvisMotionChart\(data=Fruits, idvar="Fruit", timevar="Date", chartid="ILoveFruit"\)-- Labels: RKWard user interface --
Comment 1 Thomas Friedrichsmeier 2011-12-07 08:39:17 UTC
Hi\!

The problem is not that javascript is not allowed in the internal browser \(it is allowed, unless you have configured konqueror otherwise\). The problem is that the JS engine does not seem to be able to handle this, correctly. In the mid term, we will probably switch to a WebKit-based internal browser, and probably this will fix the issue. However, I'm very reluctant to do so right away, since it would break compatibility with older versions of KDE, which are still around on many systems.

As a workaround, use
plot \(M, browser="firefox"\)
to open in an external web browser.

Regards
Thomas
Comment 2 Thomas Friedrichsmeier 2011-12-07 08:39:17 UTC
- **summary**: Allow javascript in web browser --> Better javascript support in internal browser
Comment 3 RKWard Team 2011-12-07 13:06:12 UTC
-- Originally posted by (AT sourceforge.net): burfee --
having tried on linux yet because i am at work, but from windows, using plot \(M, browser="firefox"\) in KWard does not open a new window in firefox. Is there a problem with this in windows?
Comment 4 RKWard Team 2011-12-07 13:06:35 UTC
-- Originally posted by (AT sourceforge.net): burfee --
haven't\*
Comment 5 Thomas Friedrichsmeier 2011-12-07 15:05:32 UTC
...and I have only tested on Linux, not Windows, yet. But I would guess, it's simply a problem with the PATH. On Linux, firefox will typically be in the path, on Windows, I guess you will have to write
plot \(M, browser="C:\Programs\Mozilla\firefox.exe"\)
or something similar \(and in fact, browseURL\(\), which is the underlying function, does not appear to warn, if the browser executable cannot be found\).

BTW, looking at the source of browseURL\(\), I think writing
plot \(M, browser=NULL\)
should also do the trick on Windows.
Comment 6 RKWard Team 2011-12-07 15:18:14 UTC
-- Originally posted by (AT sourceforge.net): burfee --
yes, plot \(M, browser=NULL\) does the trick :D
thanks\!