[rkward-tracker] [ rkward-Feature Requests-3453246 ] Better javascript support in internal browser

SourceForge.net noreply at sourceforge.net
Wed Dec 7 16:05:32 UTC 2011


Feature Requests item #3453246, was opened at 2011-12-06 21:41
Message generated for change (Comment added) made by tfry
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459010&aid=3453246&group_id=50231

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: RKWard user interface
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Burfee (burfee)
Assigned to: Nobody/Anonymous (nobody)
Summary: Better javascript support in internal browser

Initial Comment:
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")

----------------------------------------------------------------------

>Comment By: Thomas Friedrichsmeier (tfry)
Date: 2011-12-07 08:05

Message:
...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 By: Burfee (burfee)
Date: 2011-12-07 06:06

Message:
haven't*

----------------------------------------------------------------------

Comment By: Burfee (burfee)
Date: 2011-12-07 06:06

Message:
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 By: Thomas Friedrichsmeier (tfry)
Date: 2011-12-07 01:39

Message:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459010&aid=3453246&group_id=50231




More information about the rkward-tracker mailing list