JSON data is not showing in localhost Chrome Browser - google-chrome

The kitchensink example is working fine in my Chrome browser
http://cdn.sencha.io/touch/sencha-touch-2.1.0/examples/kitchensink/index.html#demo/jsonp
But when I downloaded the code of it and run on local server, it remains in state of data loading.

Its because of cross-origin errors you get in the javascript...
Go to your chrome shortcut -> right click -> properties -> shortcut
Change the target field from:
"C:\Users\boris.d\AppData\Local\Google\Chrome\Application\chrome.exe"
to
"C:\Users\boris.d\AppData\Local\Google\Chrome\Application\chrome.exe --allow-file-access-from-files"
and it will work for you :-)

add JSONView as extension in your chrome browser and refresh your page.It will work.
use following link to add:
https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc/related?hl=en

Related

Opening localhost:1000 in Chrome in cmd

I can't seem to open localhost:1000 in Chrome via cmd. I can, however, open other urls using start chrome www.stackoverflow.com, but when I try this with localhost:1000 it opens an empty window. Anyone know how to fix this problem?
Simply add protocol to URL.
E.g start chrome http://localhost:1000 works well.

Unable to use Chrome Experimental Devtools API

I'm trying to use the Chrome Experimental Devtools API.
I've tried running Chrome with: --enable-experimental-extension-apis as suggested here: http://developer.chrome.com/extensions/experimental.html and enabled the "Experimental Extension APIs" in the flags settings.
When I open the Console in Chrome (or Canary), I get the following:
chrome.devtools: undefined
chrome.experimental: undefined
I'm running Chrome 21.0.1180.77 beta-m. I've also tried Canary.
What am I missing?
As explained here: http://developer.chrome.com/extensions/devtools.html, the chrome.devtools APIs are only available in your devtools HTML page.
First, you need to create an HTML file and then add it to your extension's manifest under the "devtools_page" key. When you load your extension into Chrome and open the DevTools, you should see your new tab.
In that tab is the only place chrome.devtools will work.
chrome.experimental is different and will be available in all of your background pages and content scripts.
You need to run it only in Canary.
Plus when you run chrome add this flag to the command line:
path_to_chrome.exe --enable-experimental-extension-apis

Restoring chrome new-tab w/o uninstalling my extension

I have a chrome extension whick among other things is replacing the new-tab functionallity.
But since i can't restore all the new-tab functionallity (account sync login,bookmarks,web apps,recent sites,most popular).
I want the users to be able to restore the default new tab, w/o uninstalling my extension.
From my investigation there is the internal chrome scheme: "chrome-internal://" whick has the URL : chrome-internal://new-tab/ .
When i try to navigate to it from my extension it does not seem to work (premission denied,although i requested it within the mainfest).
But when navigating to it from chrome (js console) it does show the default new tab.
Any help will be appreciated.
In a Chrome extension, you can set a tab to display the original chrome new tab page by calling update on it:
chrome.tabs.update({
url: 'chrome-internal://newtab/'
});
The "New Tab" chrome extension does this. View the code on GitHub.
Alex is right. from Chrome 33+
https://www.google.co.jp/_/chrome/newtab?ie=UTF-8
replace chrome-internal
and chrome://apps works.

How to view the HTML web storage in Chrome and Firefox

How can I view HTML web storage in Chrome and Firefox?
try the inspector in Chrome.
Right Click Page > Inspect Element > Resources -> Local Storage
For Firefox use Firebug add-on. Open Firebug. Click on Console. On the command line type in:
localStorage
For development you can also edit local storage in Firebug using dot notation. For example:
localStorage.myVar = "hello"
localStorage.clear()
localStorage.removeItem("myVar")
In Firefox 19+ you can inspect localStorage directly from the console without Firebug:
inspect(localStorage)
This will pull up a panel displaying the key/value pairs
Firebug localStorage documentation
Install Firebug add-on
In Firefox the data is saved to the webappstore.sqlite in the FF profile folder. You can view it with the SQLite Manager, an addon for FF.
In Chrome pull down More Tools->Developer Tools. In the panel that appears click the Application tab. You will see LocalStorage in the subsequent menu. You can delete, Edit etc....

Internet Explorer Blocked download file

I use jquery post function to go to server and bring the link to file download.
When the func returns the link, I try to open a popup or iframe with link source, to popup save/open file window
I tried this
window.open(data.link,'Download','top=20,width=3,height=3,left=20');
and
document.getElementById('download').src=data.link;
It works in Firefox , but in Internet Explorer it shows the message : "To Help Protect Your Security, Internet Explorer Blocked.."
How do I get over this?
EDIT:
If I do it from direct link from the page it does not show me this message
This is due to IE's security settings. By default, IE automatically blocks any automatic downloads. There's no (legit anyway) way you can get around that except by changing the security settings of the browser. The user will be able to download the file by clicking on the bar that it displays, and click download file.
Well that looks like the popup blocker sort of behavior to me. I don't think you can do anything about this except use an alternative method to fetch the URL.
By the way, visitors are used to the Yellow bar and right clicking on it to get the correct download.
So I don't think you need to panic too much.
Edit:
You're not going to be able to change the security settings of everybody's browser. So either give up, or get by.