GoogleVis does not show chart in RStudio - r

I am trying to use googleVis-0.5.10 with RStudio 0.99.473 on Windows 7. I can generate charts just fine, but they always opened in a new browser window. The code is simple, no extra options are set:
lineChart <- gvisLineChart(data,
options = list(
selectionMode = "multiple",
focusTarget = "category",
tooltip = "{ trigger : 'focus', aggregationTarget: 'auto' }")
)
plot(lineChart)
I have tried to call viewer manually by providing url from the opened browser window:
rstudio::viewer("http://127.0.0.1:10529/custom/googleVis/LineChartIDc6837e37021.html")
But it shows almost an empty screen:
I think it is some kind of a security issue as when I right click RStudio Viewer window and open web inspector, I see there is a javascript error:
Failed to load resource: Unable to init SSL Context: https://www.google.com/jsapi?callback=displayChartLineChartIDc6837e37021
If I am right, is there a way to instruct RStudio to trust content from www.google.com domain? Or, if I am wrong, how can I fix the problem?
Thank you.

I think your flash player is not enabled. In chrome type:
chrome://plugins
and check the flash player checkbox and try again.

Inda's answer is correct, except now the path to change your Chrome flash settings is
chrome://settings/content

Related

In my Meteor app, only in Firefox deletion of selection text makes the browser go back to previous url

I have a really weird issue that only happens in Firefox.
I am writing a Meteor App and am using the Quill Editor. http://quilljs.com/
I do not think it is necessarily the Quill Editor since I cannot reproduce the issue on the example they have on the site.
So when you type in the text box, then select your text and click delete, the browser redirects back to the previous url! It is such a terrible experience when you delete text and your browser just jumps to another page. This only happens in Firefox too, in Chrome and Safari it seems to be stable.
What is the deal? Here is the code for the quill editor...
Template.quillNote.rendered = ->
self = #
# This variable is used to stop updating the template when you are the one updating it
self.noUpdate = false
# If currently saving then push function into a queue to call later
self.saving = false
#Initialize Editor
#editor = new Quill(#find('.quill-editor'),
modules:
'authorship':
authorId: Meteor.user().username
enabled: true
toolbar:
container: #find('.quill-toolbar')
"link-tooltip": true,
'image-tooltip': true
theme: "snow"
)
self.editor.on 'text-change', (delta, source) ->
if source is 'user'
# Do not update screen while user is typing
self.noUpdate = true
saveDraftCallback()

Launching a webpage in browser from an Adobe Air app not working

I've got a webpage I want to hook in to my Adobe Air app. It's running JavaScript, so I can't open it in the app, but I'm trying to launch it in the default system browser.
Here's the code that's supposed to be launching the page:
public function beginModule():void {
var loader:HTMLLoader = new HTMLLoader();
var gameURL:URLRequest = new URLRequest("file:///path/to/file.html");
loader.navigateInSystemBrowser = true;
loader.load(gameURL);
}
I've also tried using
flash.net.navigateToURL(gameURL);
but that had no effect.
Every time I hit the above method, that block executes but nothing happens other than a quick cursor change-- no browser opened, no change in the app. What am I missing here?
Before you start, check if the HTML page is properly running in the browser.
To open a HTML page in flex, use the HTML tag: <mx:HTML></mx:HTML>
Something like this: https://snipt.net/anishnair/flex-show-html-page/?key=28838d54ac287180032dee000ce33a74
Thank you.
Regards,
Anish
Simply use :
navigateToURL(url,"_blank");
to navigate to the url in the web-browser.

printing rdlc using report viewer 10.0.0.0, print button not showing

I have an rdlc report in an asp.net project.I’m using report viewer 10.0.0.0 to view and print the report. Except for Internet Explorer the print button of the report viewer does not show.
Though in my case, print button does show in IE, it gives the error” Unable to load client print control” when it is pressed. I found similar problems reported for report viewer 2008,but the solutions like, installing the SP 1 did not solved my problem.
Is there a way to enable printing independent of the browser?
Please Help.
You can add your own button and adjust it to the report header and, using jquery and javascript you can print from chrome or firefox
For direct printing on page load:
$(window).load(function() {
var a = document.getElementById("ReportFrame" + reporviwername).contentWindow;
a[1].print();
});
For printing on PrintButton click:
$('.PrintButton').live('click', function() {
var a = document.getElementById("ReportFrame" + reporviwername).contentWindow;
a[1].print();
});
The printer controls in report viewer are implemented as an ActiveX Control. Those are IE specific controls. So, you will not get that option if you use anything other than IE.
If you want a browser independent version, you could embed the report in pdf form.
Pdfs viewers have a print button.
In my experience it works well with most modern browsers. The pdf format too is standard, so your reports will be printed the same, regardless of the browser.
As everyone suggested that Report viewer control only renders with ActiveX control, and many other browsers don't support this so not possible but IE.
So Microsoft updates their supporting features in a recent release after SQL Server Reporting Service 2016 and later version they have updated their dependencies on ActiveX Control.
So you can update your Reporting Services to Latest.
Refer :Updated Report Viewer Control

WebDriver HtmlUnitDriver NoSuchElementException

I'm using Webdriver to test my web application. When I work with FireFoxDriver or ChromeDriver everything seems to be ok. When I work with HtmlUnitDriver though things start to go wrong.
Here is a sample code:
WebDriver driver = new HtmlUnitDriver();
driver.get("http://localhost:8099/");
WebElement loginButton = driver.findElement(By.xpath("//button[#type='button']"));
loginButton.click();
i'v looked at the driver.getPageSource result, and the source code presented there is very partial.
it doesnt show me all the elements. it is the same a clicking view source on the page.
what i need from the driver is the entire source, like firebug or chrome inspector give me.
any ideas on how i can retrieve it?
my app was written with the GWT.
thanks a million
Have you tried to enable JavaScript for HtmlUnitDriver?
I believe that the HTMLUnitDriver emulates IE by default (link) and there are other questions related to clicking buttons with IE. Have you tried this?
// Press enter on the button
loginButton.sendKeys("\n");
Also, have you tried adding an ID to the element and using that to find the button?

Open Default page without Addressbar, Menubar & Statusbar in ASP.NET

How can I open my Default.aspx page without Addressbar, Menubar & Statusbar?
Remember it's the user with an already-opened web browser that chooses to visit your website, effectively Default.aspx page, whether or not the browser is launched by you or a program while testing your website. So a bit of client-side/JavaScript "magic" is needed to modify or fake the desired result based on an already existing browser window...
Using JavaScript, you can launch a new window with those features turned off, and close the old window. For example, IE's window.open(..) args are specified here.
It provides an example
varCustomFeatures = 'titlebar=no, status=no,menubar=no,resizable=yes, scrollbars=no,toolbar=no,location=no,directories=no,left=0,top=0,height=';
window.open(windowURL, '_blank' , varCustomFeatures,true);
Details may vary between browser in which case you will likely need to employ browser detection.
You can't.
However, you can create a popup windows without the bars in Javascript using open method, like this:
open("MyPage.aspx", "MyWindow", "toolbar=no,status=no,menubar=no");

Resources