-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE9 SCRIPT10: The data necessary to complete this operation is not yet available. #1116
Comments
Email me your json file and I'll take a look. On Tuesday, August 19, 2014, clark-stevenson notifications@github.com
Photon Storm Ltd. Skype: richard.davey Registered in England and Wales. |
Hey Rich thanks 👍 So outside of phaser, I load data from this URL for example which was made by hand. http://dev.cdn.drimgames.com/games/library/profiles/nc/lang/en.json I use XMLHttpRequest and I check for the onreadystatechange. request.readyState == 4. This works well across the browsers I tried it on so far, crucially bloody ie9 At the point at which phaser boots, the first thing it does is attempt to load a config file from here http://dev.cdn.drimgames.com/games/quiz/release/data/test2/config.json That is where the script10 appears. |
In Loader.js there is a conditional that uses XDomainRequest for IE9 Cheers, Rich On Thursday, August 21, 2014, clark-stevenson notifications@github.com
Photon Storm Ltd. Skype: richard.davey Registered in England and Wales. |
Ah I never knew you were away mate, no worries! Thanks for taking a look, I will play with that loader and report back. |
Thanks for the heads up on this Rich. Getting rid of that whole XDomainRequest solves the loading error. However, I am not really comfortable making a pull request. Before I wrote this ticket, I read that XDomainRequest specifically exists to allow cross domain scripting which IE does not natively support with XHR. We do not yet have a test case where we have the game running on an IFrame from a different domain. I will try to get one setup and test but I am away myself for a couple of weeks so there might be a delay. |
Don't do a PR with it removed, just use as a local fix for now and I'll add Photon Storm Ltd. Skype: richard.davey Registered in England and Wales. |
Sounds good! Cheers for your help on this. 💃 |
We are having some difficulty with getting IE9 and Phaser (2.0.5 or 2.0.7) to work together.
The first thing that phaser tries to do on boot is load a config.json file which has been encoded in utf8 without bom. (According to Charles). I am positive the encoding is correct because I also have a profile.json which is loaded (outside of phaser) which looks the same and works.
The error I get with Phaser loading this JSON file is this:
Phaser v2.0.7 | Pixi.js v1.6.1 | Canvas | HTML Audio | http://phaser.io
SCRIPT10: The data necessary to complete this operation is not yet available.
Do you have any idea what causes this?
See my forum post for more information http://www.html5gamedevs.com/topic/8580-ie9-loading-json/
The text was updated successfully, but these errors were encountered: