You are not logged in.

1

Monday, April 25th 2011, 9:25am

"onloadcomplete" event is not working on "iphone"

Hi,

"onloadcomplete" event is not working on "iphone".
is there any specific reason for that.

thanks

--
Pratiks

2

Tuesday, April 26th 2011, 11:21am

"onloadcomplete" event is not working on "iphone"

Hi All,

any answers?

thanks

--
Pratiks

3

Wednesday, April 27th 2011, 9:44am

Hi,

do you have an example where it is not working?

best regards,
Klaus

4

Wednesday, April 27th 2011, 10:06am

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

5

Wednesday, April 27th 2011, 10:20am

Hi,

do you just have a preview image and not a real pano image?
then this could happen...

best regards,
Klaus

6

Wednesday, April 27th 2011, 11:02am

Hi,

i have used real pano image.

thanks

--
Pratiks

7

Wednesday, April 27th 2011, 11:23am

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

8

Wednesday, April 27th 2011, 12:09pm

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

9

Thursday, May 5th 2011, 12:02pm

Hi,

sorry for the delay, here a simple example with onloadcomplete that works on iPhone/iPad:
http://krpano.com/temp/onloadcomplete/

here the xml code:
http://krpano.com/temp/onloadcomplete/onloadcomplete.xml

best regards,
Klaus

10

Thursday, May 5th 2011, 1:29pm

Hi,

thanks for your example.

--
Pratiks

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

11

Thursday, May 5th 2011, 8:34pm

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/te…/onloadtest.rar

Quoted

<!-- 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 not

loadscene 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>

12

Friday, June 3rd 2011, 9:32am

Hi Klaus,

Quoted

sorry for the delay, here a simple example with onloadcomplete that works on iPhone/iPad:
http://krpano.com/temp/onloadcomplete/

here the xml code:
http://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

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

13

Friday, June 3rd 2011, 11:08am

Must be something wrong with your phone then.

Sent from my iPhone
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

14

Monday, June 6th 2011, 9:08am

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

15

Monday, June 6th 2011, 10:04am

Hi,

it's working now..

thanks all for ur help.

--
Pratiks