Hi,
"onloadcomplete" event is not working on "iphone".
is there any specific reason for that.
thanks
--
Pratiks
Hi,
"onloadcomplete" event is not working on "iphone".
is there any specific reason for that.
thanks
--
Pratiks
Hi All,
any answers?
thanks
--
Pratiks
Hi,
do you have an example where it is not working?
best regards,
Klaus
Hi,
sorry...but i am not able to share the code or example as there is some restriction.
if you can solved that issue, i will be greatful to you.
thanks
--
Pratiks
Hi,
do you just have a preview image and not a real pano image?
then this could happen...
best regards,
Klaus
Hi,
i have used real pano image.
thanks
--
Pratiks
Hi,
if you want I can make an example where it works
don't you have more information or a stripped-down not-working example?
best regards,
Klaus
Hi,
i am very thankful to you if you can make an example for me where "onloadcomplete" events works in iPhone or iPad.
thanks
--
Pratiks
Hi,
sorry for the delay, here a simple example with onloadcomplete that works on iPhone/iPad:
https://krpano.com/temp/onloadcomplete/
here the xml code:
https://krpano.com/temp/onloadcomplete/onloadcomplete.xml
best regards,
Klaus
Hi,
thanks for your example.
--
Pratiks
I think there is more to this. I ran a ton of tests and this is what i have come up with. depending on where the loadscene is placed you get very different results. the events must not queue up behind one another?
here is a download link to this test if someone want to verify. http://www.virtualnorthland.com/panos/test_kla…/onloadtest.rar
ZitatAlles anzeigen<!-- USE loadscene(testscene); OR delayedcall(1, loadscene(testscene)); FOR TESTING
loadscene inside global onstart = first onstart works, first onxml does not, first onload does not, second onstart works, second onxml works 2 times?, second onload works
loadscene inside global onxml = first onstart works, first onxml works, first onload does not, second onstart works, second onxml works, second onload works
loadscene inside global onload = first onstart works, first onxml works, first onload works, second onstart works, second onxml works, second onload does notloadscene inside global onxml with a DELAYEDCALL of 1 second everything works.
loadscene inside global onload with a DELAYEDCALL of 1 second everything works.
loadscene inside global onstart with a DELAYEDCALL of 1 second everything works.REMOVING GLOBAL 'IMAGE' TAGS MAKES FIRST ONLOAD STOP TOTALLY. Why are images tags needed outside of a scene?
REMOVING SCENE 'IMAGE' TAGS MAKES SECOND ONLOAD STOP TOTALLY. Why are images tags needed at all shouldnt preview just work?-->
<krpano version="1.0.8.14" onstart="showlog(); trace('first onstart is working ...'); "><view hlookat="0" vlookat="90" fov="120" />
<preview url="preview.jpg" /><image> <!-- delete IMAGE tag code and onloadcomplete stops working totally-->
<cubestrip url="preview.jpg" />
</image> <!-- delete IMAGE tag code and onloadcomplete stops working totally-->
<!-- start of global data -->
<events onxmlcomplete="trace('first onxmlcomplete is working ...'); "
onloadcomplete="trace('first onloadcomplete is working ...'); "/>
<!-- end of global data -->
<scene name="testscene" onstart="trace('second onstart is working ...');">
<view hlookat="0" vlookat="-90" fov="120" />
<preview url="preview.jpg" />
<image> <!-- delete IMAGE tag code and onloadcomplete stops working totally-->
<cubestrip url="preview.jpg" />
</image> <!-- delete IMAGE tag code and onloadcomplete stops working totally-->
<!-- start of scene data -->
<events onxmlcomplete="trace('second onxmlcomplete is working ...');"
onloadcomplete="trace('second onloadcomplete is working ...');"/>
<!-- end of scene data -->
</scene></krpano>
Hi Klaus,
Zitatsorry for the delay, here a simple example with onloadcomplete that works on iPhone/iPad:
https://krpano.com/temp/onloadcomplete/here the xml code:
https://krpano.com/temp/onloadcomplete/onloadcomplete.xml
i have tested above link in iPhone3 and "onloadcomplete" event is not working at all. ya it's true that it is working on safari useragen iPhone4/iPad. but not on actual iPhone3 device.
Please help me out.
thanks
--
Pratiks
Must be something wrong with your phone then.
Sent from my iPhone
Hi,
the reason is - without image no image onloadcomplete event:
the onloadcomplete event will be called when the loading of pano images will be done,
best regards,
Klaus
Hi,
it's working now..
thanks all for ur help.
--
Pratiks
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!