Cocos2d html5 js-binding XMLHttpRequest error

Cocos2d html5 js-binding XMLHttpRequest error
0.0 0



We have develop a game using cocos2d html5. Web version works very well but when i make js-binding to iPad there are some problems.

Does anyone knows how to solve ” ReferenceError: XMLHttpRequest is not defined ” error?
I got this error during cocos2d-html5 to cocos2d iphone js binding. I have to connect remote server to post/get some data. It works well on cocos2d-html5 but i could not bind it to native.

Thanks in advance…


Hi, I can’t really help you (I don’t have much JSB experience), but maybe you can get more info in the JSB specific forum:


Thank you. I open the same issue on there.