3

I download Sencha Touch 2.0, and want to learn from its example. But my chrome can not load it. Chrome do not show any thing, it's white actually. But Safari can load it well. Why chrome can not? My chrome is the lastest, and i have reinstalled it this noon.

Jiaqi
  • 103
  • 9

1 Answers1

1

How are you debugging it?

I might not be correct as I'm also learning.. but the below is 1 possible reasons that is causing the errors.

Are you debugging it through file:// (Running as local files)? Look at your URL bar.

If it's file://.. for safari they do not impose XSS (Cross Site Scripting) for files that run locally. But for chrome they have XSS (Cross Site Scripting) for local file.

See Disable same origin policy in Chrome on how to disable same origin policy.

Community
  • 1
  • 1
steve0hh
  • 627
  • 6
  • 15
  • Thanks very much. It's done. In the same directory of chrome.exe, start chrome by this: "chrome --disable-web-security", then I can run my local file. Thanks:-) – Jiaqi Apr 25 '12 at 05:48
  • Sorry for that. I am not so familiar with Stack Overflow. I will do better and better. Thanks! – Jiaqi Dec 22 '12 at 07:09