You are not logged in.

1

Thursday, June 16th 2011, 3:09pm

FATAL EROOR: android.xml - Error: NETWORK_ERR: XMLHttpRequest Exception 101

Hi,

While i am redirecting for Android from HTML using below code

Quoted

var viewer = createPanoViewer({swf:"krpano.swf",target:"pano"});
viewer.useHTML5("whenpossible");
if(viewer.isDevice("iPhone|iPod")){
viewer.addVariable("xml", "iphone.xml");
} else {
viewer.addVariable("xml", "android.xml");
}
viewer.embed();

I am checking the same in Windows(Desktop) Chrome it is redirecting perfectly but gives me following error but it works perfectly in Windows(Desktop) Firefox.
FATAL EROOR: android.xml - Error: NETWORK_ERR: XMLHttpRequest Exception 101

Note: i have note checked the same with actual Android device yet.

Thanks

--
Pratiks

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Thursday, June 16th 2011, 3:13pm

maybe bad xml.. try to see.

Source code

1
2
3
4
5
6
7
8
var viewer = createPanoViewer({swf:"krpano.swf",target:"pano"});
viewer.useHTML5("whenpossible");
if(viewer.isDevice("iPhone|iPod")){
viewer.addVariable("xml", "iphone.xml");
} else {
viewer.addVariable("xml", "iphone.xml");
}
viewer.embed();


edit
actually, thats silly. of course android.xml is bad.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Friday, June 17th 2011, 2:34pm

Hi sachagriffin,

sorry, but i didn't get you properly.

--
Pratiks

4

Saturday, June 25th 2011, 11:59am

Hi,
I am checking the same in Windows(Desktop) Chrome it is redirecting perfectly but gives me following error but it works perfectly in Windows(Desktop) Firefox.
FATAL EROOR: android.xml - Error: NETWORK_ERR: XMLHttpRequest Exception 101
the Chrome browser doesn't allow loading local xml files by default (like other browsers),

you would need to start Chrome with the "--allow-file-access" command-line parameter to allow Chome also loading local files vja Javascript,

best regards,
Klaus