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.

1

Thursday, October 25th 2012, 4:59pm

hyperlink in scrolling text field?

Hello,

I'm looking at the scrollingtextfield.xml example I am trying to figure out how to put a simple hyperlink in there. Is it possible? I tried several ways including this

Source code

1
2
3
4
5
<data name="testtext">
		start text test text test text test text test[br/]
		[a href="http://google.com"]Google[/a][br/]
		text test text test text test text[br/]
</data>


Also how do you get the text window to open and close? I don't want it there all the time. I'd like it to open when a info icon is clicked and then have an x on the scrolling text box to close it.

Thanks in advance.

Rich

Tuur

Sage

Posts: 3,208

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Thursday, October 25th 2012, 5:53pm

Hi,

Try

<a href="events:openurl(blablabla)"> link</a>

or so
Or do a search for link in textfield *g*

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

3

Thursday, October 25th 2012, 11:23pm

Hi Tuur,

Thanks for the reply.

Yes, I tried that and it doesn't work. A regular hyperlink works for html5 version but I can't seem to get a link in the scrolling text box in the Flash version.

I did search a bit before posting. The only thing I found was a note under the documentation saying that html support was very limited. There is a href example that I was trying to work with: http://krpano.com/plugins/textfield/#attributes

I think I am just missing a piece to get it to work. Specifically the action, but the documentation doesn't show that part.

Thanks

Rich

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Friday, October 26th 2012, 1:19am

You need to post a link to your example that doesn't work. Most likely the reason is that your krpano is many months old. Tuur's syntax should work in html5. I have no problems with opening links in either syntax.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

5

Friday, October 26th 2012, 3:12pm

Hi,

Thanks for your reply. Yeah, its an odd one. I thought placing a link in the scrolling text field should be rather straight forward. I am using the latest version of KRPano. The links works in html 5 just not in Flash version. Here is my link.

Thanks

Rich

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

6

Saturday, October 27th 2012, 7:10am

Then switch to the event syntax. It will work for both js and flash now.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

7

Saturday, October 27th 2012, 4:26pm

When the text itself should be not select- and clickable, then the plugin/layer children setting should be set to false.

8

Saturday, October 27th 2012, 6:18pm

try with this

<a href="#" onclick="http:// yoururl.html">Link</a>

9

Friday, November 2nd 2012, 3:12pm

Hi Job.1,

Thank you for your suggestion, but this does not work in either Flash or HTML5 version.

Does anyone have an example of a link in the scrolling text box?

Thanks to all who have replied.

Rich

Similar threads