DataZombies / jQTouch

jQT extensions jqt.activityIndicator, jqt.bars (with numeric badges), jqt.checkGroup & jqt.segmentedControl.Get updates via Twitter http://twitter.com/HeadDZombie. If you find this fork useful please make a donation via PayPal (http://tinyurl.com/2fpmx27). See below for demo links.
MIT License
159 stars 34 forks source link

Same origin policy error #52

Closed cbullokles closed 12 years ago

cbullokles commented 12 years ago

I'm trying to create a PhoneGap project using tabbar, so I've dowloaded jqtouch from your fork. Now in my first test, I want to try the examples, but I've an error when the page try to load iscroll-lite-min file, the error is so clear, it's a same origin policy problem. I've the same problem using Firefox or Chrome browsers.

0: Called getPath XMLHttpRequest cannot load file:///C:/Users/cbullokl/workspace/MobileWebTest/DataZombies/jQTouch/extensions/jqt.bars/iscroll-lite-min.js. Origin null is not allowed by Access-Control-Allow-Origin. jqt.bars.js:221183: Called init_iScroll jqt.bars.js:2190: #about nodeType: 1 jqt.bars.js:571Uncaught ReferenceError: iScroll is not defined

DataZombies commented 12 years ago

I'm not familiar with PhoneGap. Make sure that iscroll-lite-min.js is in the extensions / jqt.bars folder and that you haven't modified the path in jqt.bars.js line 699. If that doesn't work then this might be a PhoneGap setting error.

DataZombies commented 12 years ago

Check your permissions on the file and use Safari for windows. Never use firefox for iphone dev: it is NOT a webkit browser. Did you modify the iScroll load function at the bottom of jqt.bars.js?

DataZombies Beaver, Pennsylvania, USA DataZombies@gmail.com

The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.

On May 22, 2011, at 11:21 PM, cristianbullokles wrote:

I'm trying to create a PhoneGap project using tabbar, so I've dowloaded jqtouch from your fork. Now in my first test, I want to try the examples, but I've an error when the page try to load iscroll-lite-min file, the error is so clear, it's a same origin policy problem. I've the same problem using Firefox or Chrome browsers.

0: Called getPath XMLHttpRequest cannot load file:///C:/Users/cbullokl/workspace/MobileWebTest/DataZombies/jQTouch/extensions/jqt.bars/iscroll-lite-min.js. Origin null is not allowed by Access-Control-Allow-Origin. jqt.bars.js:221183: Called init_iScroll jqt.bars.js:2190: #about nodeType: 1 jqt.bars.js:571Uncaught ReferenceError: iScroll is not defined

Reply to this email directly or view it on GitHub: https://github.com/DataZombies/jQTouch/issues/52