Chart.js don't work when I open my app as a stand alone app in Chrome - google-chrome

I'm deploying my app and I have a dashboard implemented with Chart.js. When I tested my app in standard way, the dashboard works fine, but opening my app through a Google Chrome shortcut (within a window) the charts doesn't work. Just charts doesn't work in Chrome window mode.
The problem occurs in Windows 7, when I open the app directly from the shortcut, the charts doesn't work, but if I open the Google Chrome, and then open the app using the shortcut, the charts works fine.
Someone have an idea about that?
Thanks.

You'll need to look in the developer tools console to see if your getting any errors in your app. A fairly likely culprit is that you are including scripts within your html page. Chrome apps require that all scripts are external to your html and referenced using something like
<script src="path/to/your/script.js">
You'll have to do some DOM manipulation in your script file to add the charts to your page.

Related

Access Google Apps Script editor from Android

I am searching for the answer for a couple of months now.
Any browser redirects to downloading the Google Sheets app, which doesn't have the script editor.
Stack Overflow redirects to a question about running script on Android, which is irrelevant.
Any information is welcome, even if you believe it to be a simple answer to a dumb question
The Google Apps Script editor is not designed to be used on a web browser optimized for mobile devices but some web browsers, i.e. Chrome, have an option to show the desktop version of the web site.
Open your web browser
Set it to open the webpage desktop version
Go to https://script.google.com
Open your script (project) or create a new one

polymer only works when launched with chrome dev editor

It's more of a question of why rather than please fix this. Polymer elements are made for websites, not just chrome apps, right? So why when I open the html file with chrome does it not work but when I run it with chrome dev editor and it opens with chrome does it work? I'd like to build a website using polymer elements, and I'm more than happy to use chrome dev editor, I just wanna know how it'll work if I try to publish.
In order to run a website or webpage that is build with Polymer you will need a server.
Chrome Dev Editor provides a local server when we try to run our code, thus it works from Chrome Dev Editor. However when you open the html file with chrome there is no server set up.
When you run using Chrome Dev Editor you can see in address bar something like this http://127.0.0.1:31999/test/test.html
However when you try opening the html file in chrome you can see in address bar something like this file:///D:/Users/test/test.html
If you don't want Chrome Dev Editor to run your code then you can have local server set up using NodeJS etc. Or use editors like Brackets - it will set up a local server and run your webpage in browser.

Chrome webview application to load extension

Is it possible to have a webview application for a web page and load extensions in the application?
I have created a frameless wrapper for one of our web pages, so we can hide the chrome header. I am also using the stylebot extension to alter some elements in the page. It works fine inside chrome, but when I run the application the stylebot extension is not loaded.
Any idea how can I add the extension to the application?
Greatly appreciate your help on this
Thanks, Laszlo
A Google chrome extension have to be load in Google Chrome (or Chromium based browsers). The Google chrome extension API is not included in the webview engine.
You can open a frameless window with create method of the Google window API. You should add an handler to browser action click and create a window of with "popup" type and the url you want. It's not exactly what you are looking for but I don't know a better way to do it on Mac. Perhaps some one more familliar with that environement could help you.
An other far more complicated solution is to fork the Crhomium project and do what you want. But it demand a large developpement I think.

How to open app in same tab or new tab, not in a new window

I want to create an app and that opens only on new window.
This tells that we cannot open tab by a chrome apps. But when I access
this gmail app, and this kind of apps opens in the same tab.
How can I get this resolved.
It seems that you are confusing Chrome Hosted Apps with Chrome Apps.
Hosted apps are more or less bookmarks. Chrome Apps are similar to native apps in that they are much more powerful but have no special access to the browser. You can open normal web content using window.open(). But you can't put your own Chrome App content inside that tab.

Excel page does not load in Google Chrome

I am using Flash Builder 4.0 to develop my application. I have a button whereby I click to open a CFM page which generates an Excel sheet.
The code when I click the button in Flex is as follows:
openXlsFile(e.target.label, "myexcelexport.cfm", 'TEST');
This line of code works fine on Internet Explorer and Mozilla. But it does not work on Google Chrome. Any idea form experts why this is so? Is there any setting that I am missing in Google chrome or something?
There's currently an issue Chrome is having with its built in Flash (pepperFlash). I'd make sure that's not the cause of your issue.
Details can be found here:
https://code.google.com/p/chromium/issues/detail?id=277210
This issue has been fixed in Google Chrome version 30.0.1599.101