Sie sind nicht angemeldet.

1

Sonntag, 26. Januar 2014, 11:00

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:

Quellcode

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

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »hub« (26. Januar 2014, 12:21)


2

Sonntag, 26. Januar 2014, 19:24

Hi,

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

Quellcode

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

3

Montag, 27. Januar 2014, 17:05

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

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

4

Dienstag, 28. Januar 2014, 09:39

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

5

Dienstag, 28. Januar 2014, 10:59

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

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

6

Dienstag, 28. Januar 2014, 11:13

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

7

Dienstag, 28. Januar 2014, 11:58

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

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

8

Dienstag, 28. Januar 2014, 12:49

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

9

Dienstag, 28. Januar 2014, 13:22

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

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »hub« (28. Januar 2014, 13:33)


Stefan.L

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

10

Dienstag, 28. Januar 2014, 13:38

links not working...
Best regards - Stefan

Stefan.L

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

11

Dienstag, 28. Januar 2014, 14:01

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

12

Dienstag, 28. Januar 2014, 14:02

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

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

13

Dienstag, 28. Januar 2014, 14:10

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

14

Dienstag, 28. Januar 2014, 15:22

That's XLM file:

Quellcode

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

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

15

Dienstag, 28. Januar 2014, 15:27

Looks good - Have you tried replace [ with < ?

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

16

Dienstag, 28. Januar 2014, 15:35

Zitat

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

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

17

Dienstag, 28. Januar 2014, 15:48

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

18

Dienstag, 28. Januar 2014, 16:46

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

Schüler

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

19

Dienstag, 28. Januar 2014, 17:02

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

20

Dienstag, 28. Januar 2014, 17:07

Fatal error

Ähnliche Themen