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, 4. März 2011, 17:41

Issue with Web links in textfield plugin: click, but no-go :(

Hi there:

(I had this question as part of my response to this post about the textfield plugin & how to modify it for html5 devices)

I'm posting this here because maybe I have missed something really obvious, and also because I think it's not specifically textfield related... I have a Web link inline some HTML being used in a textfield (both Flash and HTML5). The link acts like a link, but doesn't go anywhere.

I copied and pasted the code from the krpano textfield example, exactly, and it works on krpano.com but not from my site.

I have tried using all the different "event:openurl()" examples shown in this post, but no change. Ideas? I'm using the latest stable krpano.


Thanks!

2

Samstag, 5. März 2011, 20:38

Any ideas?

3

Samstag, 5. März 2011, 20:56

Can you post a link? Try removing the target section? As a test, at least.

4

Montag, 7. März 2011, 09:27

No url link from textfield is a problem

Hi there:

Thanks for your interest!

I tried using all the variations for a link, including a target and leaving it as default, like Klaus's examples. No change! The exact XML I'm using is below. I have the latest version of krpano & plugins, etc -- and used the krtools to make the virtual tour. I really hope I'm not the only one to encounter this issue --

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
<style name="projectcredittext"
        url="%CURRENTXML%/../_common/plugins/textfield.swf"
    	css="data:css1"
        keep="true"
        children="false"
        visible="false"
        width="180"
        height="70"
        backgroundcolor="0x00000033"
        roundedge="5"
        shadow="1"
        borderwidth="2"
        glow="4"
        onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
/>
    
   <plugin name="project_credit_text_flash"
    	devices="flash"
        style="projectcredittext"
        selectable="false"
        html="data:html1"
        align="rightbottom"
        x="10"
        y="10"
/>

<plugin name="project_credit_text_html5" 
        devices="html5" 
        keep="true"
        url="%CURRENTXML%/../_common/plugins/textfield.swf"

        html="[div style='width:100%;height:100%;
                background-color: #000;
                border: 2px solid #fff;
                -moz-border-radius: 5px;
                -webkit-border-radius: 5px;
                border-radius: 5px;
                padding: 7px 3px 2px 7px;
                font:bold 14px sans-serif;']
        BLAH BLAH BLAH:
        [br]
        [span style='font:bold 12px sans-serif;']
        MORE BLAH BLAH BLAH
        [/span]
        [p]
        [span style='font:normal 12px sans-serif;']
        Photography (c) John Doe
        [/span]
        [/p]
        [/div]"

        align="rightbottom" x="30" y="30"
        roundedge="5" shadow="2"
        borderwidth="2"
        bordercolor="0xFFFFFF"
	backgroundcolor="transparent"
        width="200"
        height="70"
/>

<data name="html1">
	<p>
		BLAH BLAH BLAH,<br/><a href="http://www.krpano.com" target="_blank">MORE BLAH BLAH</a>
	</p><br/>
	<p class="copyrightcredit">
		Photography © (works) John Doe
	</p>
</data>	        

<data name="css1">
	p{color:#FFFFFF; font-family:Arial; font-size:14; font-weight:bold; margin-left:7; text-align:left; }
	a       { font-size:12; text-decoration:underline;  color:#cccccc;  font-weight:bold; }
	a:hover { color:#ff6500; text-decoration:none;}
	.copyrightcredit{ font-size:11; font-weight:normal;}
</data>

tommo77funk

Fortgeschrittener

Beiträge: 159

Wohnort: London

Beruf: Photographer

  • Nachricht senden

5

Montag, 7. März 2011, 14:05

Hi,

Hope this is the answer for you but i had this problem a little while ago, and looking at your code it looks like you have not added it,

HTML data links

You got it in style and not on the plugin for textfield.

Try adding children="false" to your textfield plugins.

best wishes,

tom

6

Montag, 7. März 2011, 19:38

Fixed!

Hey there:

AHA!

I had children=false in my XML and this is what prevented the links from working. I removed children=false and now the links work... Whew!

Thanks for the follow-up; I searched the forums, but didn't turn up that link. Also, would be nice if children=false was noted in the textfield documentation as a no-no *smile* .

Thanks everybody!

7

Montag, 7. März 2011, 20:03

Almost fixed ;-)

Hey again --

OK, removing the children=false works for displaying the link in Flash; the link still goes nowhere in HTML5 display. :(

So, close but not quite there yet!

8

Donnerstag, 10. März 2011, 11:51

Hi,

sorry, the href="event:..." is a Flashplayer specifc html code,

see here:
http://help.adobe.com/en_US/FlashPlatfor…d.html#htmlText

there is currently no replacement in the krpanoJS viewer for that,

best regards,
Klaus

Ähnliche Themen