You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

1

Sunday, January 26th 2014, 11:00am

openurl from a textfield

Hi,

Is it possible to open an url by a click on a word (different than url), from the inside of the textefield?
I tried this code, but it doesn’t work:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<plugin name="info09pano01"
	       url="../plugins/textfield.swf"
	       devices="desktop|tablet"
	       children="true"
	       align="lefttop" x="50" y="50" width="500" height="50"
	       zorder="2"
	       html="Thank you for your visit! Enjoy your tour ! [a href='openurl(http://www.annecypanoramique.com,_blank);'][u]Let us know, if you like it ![/u][/a]"
	       css="text-align:left; color:#FFFFFF; font-family:Arial; font-size:14px;"
	       autoheight="true"
	       vcenter="false"
	       background="true"
	       backgroundcolor="0x000000"
	       backgroundalpha="1"
	       border="true"
	       bordercolor="0x000000"
	       borderalpha="1"
	       borderwidth="20.0"
	       roundedge="0"      	       
	       keep="false"
	       visible="false" 
	       handcursor="false"	      	              
       		/>  


Can you tell me, please, what’s wrong ?

Best regards, Hub

This post has been edited 2 times, last edit by "hub" (Jan 26th 2014, 12:21pm)


hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

2

Sunday, January 26th 2014, 7:24pm

Hi,

I have changed the script (KRPano 1.17) as follows:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<plugin name="info09pano01"
	       url="../plugins/textfield.swf"
	       devices="desktop|tablet"
	       children="true"
	       align="lefttop" x="50" y="50" width="500" height="50"
	       zorder="2"
	       html="Thank you for your visit! Enjoy your tour ! [a href='event:openurl(http://www.annecypanoramique.com/,_blank);' style='color:#FFFFFF;'][u]Let us know, if you like it ![/u][/a];"       
	       css="text-align:left; color:#FFFFFF; font-family:Arial; font-size:14px;"
	       autoheight="true"
	       vcenter="false"
	       background="true"
	       backgroundcolor="0x000000"
	       backgroundalpha="1"
	       border="true"
	       bordercolor="0x000000"
	       borderalpha="1"
	       borderwidth="20.0"
	       roundedge="0"      	       
	       keep="false"
	       visible="false" 
	       handcursor="false"            
       		/> 


It works in Flash, but not in HTML5.
Have you any idea how to solve the problem?

Regards, Hub

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

3

Monday, January 27th 2014, 5:05pm

Hi,

I noticed that many of the people read my message.

Maybe the solution to my question is so obvious that it does not deserve an answer.
I am not a webmaster but a photographer.
Before formulating my question, I spent 3 days to look if the similar subject was not already treated in the documentation or on the forum. I did not find, or not understood.

I always hope that somebody will want to explain me how to proceed.

Regards, Hub

Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

4

Tuesday, January 28th 2014, 9:39am

Hi,

This works fine for me

<a href="event:openurl(http://whatever.com,_blank););"><b> Whatever text</b></a>


Have a look here also.
Best regards - Stefan

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

5

Tuesday, January 28th 2014, 10:59am

Thanks Stefan,
It works in Flash, but not in HTML5 on iPad. Perhaps HTML5 doesn't recognize "event" before " open url". I tried with only open url(); with no success.
Hub

Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

6

Tuesday, January 28th 2014, 11:13am

Hmmm i just tested on my ipad3 latest software... The code i sent is from here - test the info button and you find some links.
Have to say that i am not sure if this is correct but i have tested and it works.

The only difference is the start and the ( and [ - right?



If i am not mistaking i read about how to link here on the forum somewhere;)
Best regards - Stefan

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

7

Tuesday, January 28th 2014, 11:58am

I can open your example on iPad3 and iPhone5.
There is no difference between your XML and mine.
So, I do have another error somewhere else.
Thank you for your help.
Hub

Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

8

Tuesday, January 28th 2014, 12:49pm

alright - if you can post a link i can try have a look... good luck anyway:)
Best regards - Stefan

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

9

Tuesday, January 28th 2014, 1:22pm

Here you are my test: http://www.annecypanoramique.com/TEMP/pano01/index.html
In HTML file I set html5="prefer"
It works if html5="auto" or html5="never"
It doesn't work if html5="only" or html5="always"

Hub

This post has been edited 1 times, last edit by "hub" (Jan 28th 2014, 1:33pm)


Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

10

Tuesday, January 28th 2014, 1:38pm

links not working...
Best regards - Stefan

Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

11

Tuesday, January 28th 2014, 2:01pm

Ill managed to see the link - Anyway there must be a issue with htaccess or something else - it asks for the TEMP/pano01 - the same as in the link you posted... Is the pano linked from wordpress site or similar?




The requested URL /TEMP/pano01/openurl(http://www.annecypanoramique.com,_blank); was not found on this server.
Best regards - Stefan

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

12

Tuesday, January 28th 2014, 2:02pm

Strange behavior.
I can open this link if I put it directly into my Safari browser. The pano is visible but the hyperlink into the textfield doesn't work.
I can not open the panorama if I click into the same link put on the forum.

Try this link: http://www.annecypanoramique.com/TEMP/pano01-html5-auto/
in HTML file I set html5="auto"

Hub

Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

13

Tuesday, January 28th 2014, 2:10pm

Yes strange
I am quite sure it have nothing to do with html5 or flash - in fact i believe it can be a server issue or a htacsess. I am not so skilled in this...

Well have to see if someone else joining here..
Maybe you can post the xml - and i can have a look onto it...
*rolleyes*
Best regards - Stefan

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

14

Tuesday, January 28th 2014, 3:22pm

That's XLM file:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<krpano version="1.17">
		
	<view hlookat="0" vlookat="0" maxpixelzoom="1.0" fovmax="150" limitview="auto" />

	<preview url="pano01.tiles/preview.jpg" />

	<image type="CUBE" multires="true" tilesize="512" progressive="false">
		<level tiledimagewidth="3183" tiledimageheight="3183">
			<cube url="pano01.tiles/mres_%s/l3/%v/l3_%s_%v_%h.jpg" />
		</level>
		<level tiledimagewidth="1536" tiledimageheight="1536">
			<cube url="pano01.tiles/mres_%s/l2/%v/l2_%s_%v_%h.jpg" />
		</level>
		<level tiledimagewidth="768" tiledimageheight="768">
			<cube url="pano01.tiles/mres_%s/l1/%v/l1_%s_%v_%h.jpg" />
		</level>
		<mobile>
			<cube url="pano01.tiles/mobile_%s.jpg" />
		</mobile>
	</image>

	    	   										    	   	
	<hotspot name="hs-info09pano01"
	        url="images/hs-info.png"
	        devices="all"
	        keep="false"
	        ath="78.7" atv="3.9" 
	        zoom="false"
	        scale="0.6"
	        visible="true" 
 	        zorder="2"
	        alpha="1" 
 	        smoothing="true"   
 	        onover="tween(scale,0.8,0.3);"
 	        onout="tween(scale,0.6,0.3);"
   	        onclick="action(show-info09pano01);"                 
	        /> 
	        	        
	   <hotspot name="hs-info09pano01bis"
	        url="images/hs-info-bis.png"
	        devices="all"
	        keep="false"
	        ath="78.7" atv="3.9" 
	        zoom="false"
	        scale="0.6"
	        visible="false" 
 	        zorder="2"
	        alpha="1" 
 	        smoothing="true"   
 	        onover="tween(scale,0.8,0.3);"
 	        onout="tween(scale,0.6,0.3);"
  	        onclick="action(hide-info09pano01);"                
	        /> 		
				
	<plugin name="info09pano01"
	       url="plugins/textfield.swf"
	       devices="all"
	       children="true"
	       align="lefttop" x="50" y="50" width="500" height="50"
	       zorder="2"
	       html="Thank you for your visit! Enjoy your tour ! [a href='event:openurl(http://www.annecypanoramique.com,_blank);' style='color:#FFFFFF;'][u]Let us know, if you like it ![/u][/a];"    
	       css="text-align:left; color:#FFFFFF; font-family:Arial; font-size:14px;"
	       autoheight="true"
	       vcenter="false"
	       background="true"
	       backgroundcolor="0x000000"
	       backgroundalpha="1"
	       border="true"
	       bordercolor="0x000000"
	       borderalpha="1"
	       borderwidth="20.0"
	       roundedge="0"      	       
	       keep="false"
	       visible="false" 
	       handcursor="false"       
       		/>  
       		      					
					
	<plugin name="off-info09pano01"
	       url="plugins/textfield.swf"
	       devices="all"
	       parent="info09pano01"
	       align="righttop" edge="center" x="-10" y="-5" width="20" height="20"
	       zorder="4"
	       html="X"
	       css="text-align:left; color:#FFFFFF; font-family:Arial; font-size:14px;"	       
	       vcenter="false"
	       background="true"
	       backgroundcolor="0xFFFFFF"
	       backgroundalpha="0"
	       border="true"
	       bordercolor="0xFFFFFF"
	       borderalpha="0"
	       borderwidth="20.0"   	       
	       keep="false"
	       visible="true" 	       	
	       onclick="action(hide-info09pano01);"       
       		/>   
		
                 
       <action name="show-info09pano01">      		
       		set(plugin[info09pano01].visible,true);
       		set(plugin[off-info09pano01].visible,true);   		       		
       		set(hotspot[hs-info09pano01bis].visible,true);
       		set(hotspot[hs-info09pano01].visible,false);      		
       </action>  
       
       <action name="hide-info09pano01">
       		set(plugin[info09pano01].visible,false);
       		set(hotspot[hs-info09pano01bis].visible,false);
       		set(hotspot[hs-info09pano01].visible,true); 
       </action> 
		

</krpano>

Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

15

Tuesday, January 28th 2014, 3:27pm

Looks good - Have you tried replace [ with < ?

<a href='event:openurl(http://www.annecypanoramique.com,_blank);' style='color:#FFFFFF;'>
Best regards - Stefan

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

16

Tuesday, January 28th 2014, 3:35pm

Quoted

Is the pano linked from wordpress site or similar?


I introduced manually the URL in Safari browser (I use Mac) to verify if it works, then I copied it from the URL window of the browser and paste into my message on the forum.

Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

17

Tuesday, January 28th 2014, 3:48pm

Check below compare carefully - you use ’ instead of ” ….. maybe can be the issue. Copy paste the one i add and see that these does not change in the xml…


<a href= " event:openurl(http://whatever.com,_blank););"><b> Whatever text</b></a>
[a href= ' event:openurl(http://www.annecypanoramique.com,_blank);' style='color:#FFFFFF;']Let us know, if you like it ![/a];"


Try this - don't mind the style and underline - just see if this one works…

<a href="event:openurl(http://www.annecypanoramique.com,_blank););"><b> Let us know, if you like it !</b></a>
Best regards - Stefan

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

18

Tuesday, January 28th 2014, 4:46pm

I thought it was a type writing error in your code...
If I copy and paste,
I get black screen with a notice: "FATAL: pano01.xml -XML parser error, element is malformed (dieze 1090)
the same with the brackets []....

Stefan.L

Trainee

Posts: 102

Location: Sweden

Occupation: Photography/ webdesign

  • Send private message

19

Tuesday, January 28th 2014, 5:02pm

Replace the html - line with this and see if it works.... *smile*


html="Thank you for your visit! Enjoy your tour ! <a href="event:openurl(http://krpano.com,_blank););"><b> Krpano</b></a>
Best regards - Stefan

hub

Trainee

  • "hub" started this thread

Posts: 118

Location: Annecy, France

  • Send private message

20

Tuesday, January 28th 2014, 5:07pm

Fatal error

Similar threads