Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Freitag, 13. Januar 2012, 15:49

Info text box not showing in iPhone/iPad

I have a tour that has a text box that appears with the first scene on Desktop, but not in iPhone/iPad. How can I make it work on iOS?

Exaple below

Thanks



tour.xml
plugins.xml

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »yoshiharra« (13. Januar 2012, 20:16)


2

Sonntag, 15. Januar 2012, 14:54

Wow! I am surprised, no one have a solution to this?!!

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Sonntag, 15. Januar 2012, 16:44

Reasons: No tour link. (No one wants to slog through xml to "guess" what might be wrong.)
Basic question: You haven't said what you've tried or why you think it doesn't work. Textfield plugin works pretty well on ios devices.

Taking a wild ass guess I'd said it's the onloaded part in the textfield, moving that function to the scene.onstart might work.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

4

Montag, 16. Januar 2012, 13:55

Hi sachagriffin

Sorry I did not realize that, here is the tour -

http://web.me.com/fotobyte/1844

On Desktop, the text box shows up first time the page loads, clicking on it makes it disappear. In iPad/iPhone it does not show up at all!

5

Montag, 16. Januar 2012, 15:34

-------------Edit: this statement is wrong -------I don't see you using the textfield.js plugin. --------There is no textfield.js

And please add a button to turn OFF the gyro. I won't even view a tour that does not allow me to turn off the gyro.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Jarredja« (16. Januar 2012, 19:08)


6

Montag, 16. Januar 2012, 15:44

OK, that might be the problem. Can you help how to to that, I am not xml expert, sorry.

Can you give me the code for stop button for gyro? Please?

Thanks

7

Montag, 16. Januar 2012, 15:49

Edited: the current .js has a basic form of textfield support. There is no additional textfield.js. I stated it incorrectly. As I understand, Klaus is working on a better system. Perhaps it will be in the next release.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Jarredja« (16. Januar 2012, 19:12)


8

Montag, 16. Januar 2012, 16:36

I will look into the example. By the way, when you get chance can you get me code for stoping gyro.js?

By the way ""textfield.js" is not in the plugins folder?!! I am using krpano v1.0.8.14. Where can I find textfield.js?

I added alturl="textfield.js"
but I get "textfield.js - loading failed (0)"

Here is what I did

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<plugin name="info_text"
	        url="%SWFPATH%/plugins/textfield.swf"
	        alturl="textfield.js"
	        html="data:info_html"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:10; margin-right:10; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="300"
	        height="155"
	        backgroundcolor="0x000000"
	        roundedge="15"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="center"
	        backgroundalpha="0.7"
	        x="0"
	        y="0"
	        autosize=""
	        onloaded="action(show_info_text);"
	        onclick="action(hide_info_text);"
	        />



Thanks

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »yoshiharra« (16. Januar 2012, 17:41)


9

Montag, 16. Januar 2012, 17:47

I may have been thinking combobox instead of textfield. I will try to find the correct info and post an example when I am able.

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

10

Montag, 16. Januar 2012, 20:40

I get a fatal error so I can not even troubleshoot this.

<div style="padding:8px; text-align:center;">FATAL ERROR:<br>./plugins/combobox_source.js - loading failed! (404)&nbsp;</div>
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

11

Montag, 16. Januar 2012, 22:36

@Jarredja

Thanks for your time, waiting for your example.

@sachagriffin

The online tour is working fine in my iPad2, this has not been modified in any way. I don't know why you are having error!

The modification is done locally and tested with simulator in my MB Air. All I added is [code}alturl="textfield.js"[/code ], attached xml below

Thanks



plugins.xml
tour.xml

12

Dienstag, 17. Januar 2012, 20:18

Remove the

autosize=""

From your plugin. It should show up after that change.

As for the gyro, just add a plugin or textfield like you did for the fullscreen to change enabled from true to false and back again. Btw, on the iPhone, when you click the fullscreen button, the
screen view actually gets smaller.

13

Dienstag, 17. Januar 2012, 23:02

Hi Jarredja

Thanks for your help! *thumbsup*

Question, how do I fix the problem with iPhone?

Thanks

14

Dienstag, 17. Januar 2012, 23:25

HI Jarredja

I removed the autosize="", still same error, but when I remove alturl="textfield.js, then no error, and no text box either!

Any idea?

Thanks"

15

Mittwoch, 18. Januar 2012, 00:03

The textfield.js is wrong. That was my error. I was thinking of the combobox.js. I am sorry for leading you the wrong way. I have sent you an e-mail with a test site.

16

Mittwoch, 18. Januar 2012, 15:17

Using your button style and your current setup, here is a gyro button to enable or disable the gyro.

<plugin name="gyro-button"
style="button"
devices="iphone|ipad"
align="righttop" x="30" y="50" width="120"
html="[p]Gyro off[/p]"
onclick="switch(plugin[gyro].enabled); if(plugin[gyro].enabled == false, set(html,[p]Gyro On[/p]), set(html,[p]Gyro Off[/p]));"
/>

17

Mittwoch, 18. Januar 2012, 15:47

Hi Jarredja

it works! *g*

How can I hide the fullscreen button from iOS devices?

Thaks

18

Mittwoch, 18. Januar 2012, 16:55

Using the devices option would work.

http://krpano.com/docu/xml/#plugin.devices

More than likely, using desktop would probably offer what you are looking for but take a look at all of the options and make your decision.

19

Mittwoch, 18. Januar 2012, 18:54

Thanks

20

Donnerstag, 19. Januar 2012, 05:28

Found an additional tweak that I thought was fitting.

I added the camroll correction due to the scene appearing to lean if you turned off the gyro while the phone was at an angle. A tween instead of a set would probably be more subtle but I have a set in this example.
<plugin name="gyro-button" 
style="button"
devices="iphone|ipad"
align="righttop" x="30" y="50" width="120"
html="[p]Gyro off[/p]"
onclick="switch(plugin[gyro].enabled); set(view.camroll,0.0); if(plugin[gyro].enabled == false, set(html,[p]Gyro On[/p]), set(html,[p]Gyro Off[/p]));"
/>