I used the following fraction of code to receive the touch event.
`ccTouchesEnded:function (pTouches, pEvent) {
if(pTouches.length <= 0)
return;
var pTouch = pTouches[0];
var location = pTouch.locationInView(pTouch.view());
location = cc.Director.sharedDirector().convertToGL(location);
if(debug)
{
alert(location.x +","+location.y);
this._touchPosLabel.setString(location.x + "," + location.y);
}
...`
It’s successful and be able to show the position both for “alert()” and “label” testing on Desktop for local web server. But when I test it on the real web server in the Internet, it didn’t seem to do anything.
Any suggestions on what might be a problem ?