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.

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

1

Monday, October 10th 2016, 9:00am

How to write DeepLinking URL that opens _self..

Hi..

Does anyone know how to write a DeepLinking URL that opens to _self.. In other words, no new web page will open.. Just the one....


Thank you

Destiny...
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

2

Tuesday, October 11th 2016, 11:40am

How do you mean that?
Or to that kind of 'deep linking' do you refer?

'Deep linking' itself e.g. means getting an url for directly linking to a specific scene and/or view of a tour, but this has nothing to do with the way how the link itself would be opened...

If you use the krpano openurl() action for opening links you could set the target (e.g. '_self') as second parameter:
http://krpano.com/docu/actions/#openurl

Best regards,
Klaus

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

3

Wednesday, October 19th 2016, 12:20pm

Hi... Thank you for responding..

Well _self is what I tried since its a common option, but its where to add it since it will not work if I add it to the end of the url, as in.....

http://www.destinyvirtualtours.com/2DMap…artscene=pano10_self

So I suspect there is more to adding _self

At the moment, my urls, open a new page each time...

http://www.destinyvirtualtours.com/2DMap…artscene=pano10


http://www.destinyvirtualtours.com/2DMap…artscene=pano11


http://www.destinyvirtualtours.com/2DMap…artscene=pano12


http://www.destinyvirtualtours.com/2DMap…eFloorPlan.html


I feel there is a simple fix but for me its not like turning on a light. *cry*

Destiny...
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

Tuur

Sage

Posts: 3,203

Location: Netherlands

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

  • Send private message

4

Wednesday, October 19th 2016, 4:10pm

hi,

Source code

1
onclick="openurl(http://www.krpano.com,_self);"


Maybe use the 'calc' to compose your url.

Hope it helps,
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

This post has been edited 1 times, last edit by "Tuur" (Oct 24th 2016, 10:01am)


Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

5

Sunday, October 23rd 2016, 4:50am

Hi.. What does "calc" mean.... Where do I add it..

Destiny..

hi,

Source code

1
onclick="openruk(http://www.krpano.com,_self"


Maybe use the 'calc' to compose your url.

Hope it helps,
Tuur *thumbsup*
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

6

Sunday, October 23rd 2016, 9:31am

i dont know why you people talk about "openRUK" ???

just see again here: http://krpano.com/docu/actions/#openurl
and here: http://krpano.com/docu/actions/#calc

you could do something like :
onclick="openurl('http://www.krpano.com',_self);"

calc would be needed to construct an url:
onclick="openurl(calc('http://www.krpano.com?startscene=' + scene[get(xml.scene)].index),_self);"

xml.scene contains the actual scene name,
so scene[get(xml.scene)].index delivers the actual scene index
so the calc just constructs : 'http://www.krpano.com?startscene=3' for example

ps, maybe this works too, already:
onclick="openurl(calc('http://www.krpano.com?startscene=' + xml.scene),_self);"
constructing : 'http://www.krpano.com?startscene=scenename'

and in general.. read the manual, try things, then read again and see that u missed smth *tongue*

best, index

This post has been edited 1 times, last edit by "indexofrefraction" (Oct 23rd 2016, 1:20pm)


Tuur

Sage

Posts: 3,203

Location: Netherlands

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

  • Send private message

7

Sunday, October 23rd 2016, 11:24am

Sorry, that was the spelling correction.
Use the docs i would say.
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

8

Tuesday, October 25th 2016, 8:24am

Hi.. That looks very interesting... I will give it a try.. I have added _self but not ,_self. I will play with it over the weekend and let you know how I go....

Thank you very much for this information...

Destiny...

i dont know why you people talk about "openRUK" ???

just see again here: http://krpano.com/docu/actions/#openurl
and here: http://krpano.com/docu/actions/#calc

you could do something like :
onclick="openurl('http://www.krpano.com',_self);"

calc would be needed to construct an url:
onclick="openurl(calc('http://www.krpano.com?startscene=' + scene[get(xml.scene)].index),_self);"

xml.scene contains the actual scene name,
so scene[get(xml.scene)].index delivers the actual scene index
so the calc just constructs : 'http://www.krpano.com?startscene=3' for example

ps, maybe this works too, already:
onclick="openurl(calc('http://www.krpano.com?startscene=' + xml.scene),_self);"
constructing : 'http://www.krpano.com?startscene=scenename'

and in general.. read the manual, try things, then read again and see that u missed smth *tongue*

best, index
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

9

Tuesday, October 25th 2016, 10:11am

Well.. Its still not working.. I tried a few options..

The map is linked to open inside a website box.. So when I press the hotspot, it needs to open to self.. Upon oping a new pano the map will be closed... The first thing I tried was _self but this time I have tried ,_self and bracketed the (_self).. but it does not seem to take any notice of that.. It must work since it opens the correct pano.. just not to self.. You will notice there that there is an option to target.. BUT.. If it set that to _self, it kind of work I guess.. the new pano opens inside the website box... and not in a new browser.. I am missing something obvious.. *mellow*

Destiny...


<li data-marker-type="link" data-reg-point="center" data-marker-normal-state-path="skin_embossed_grey/skin/marker6.png" data-marker-selected-state-path="skin_embossed_grey/skin/marker6-rollover.png" data-marker-left="800" data-marker-top="974" data-marker-width="27" data-marker-height="27" data-show-after-zoom-factor="0" data-tool-tip-label="GoTo Blue Pano)" data-marker-url="http://www.destinyvirtualtours.com/2DMapTest/2DHomeFloorPlan.html?startscene=pano10,_self" data-marker-target="_blank"></li>

<li data-marker-type="link" data-reg-point="center" data-marker-normal-state-path="skin_embossed_grey/skin/marker6.gif" data-marker-selected-state-path="skin_embossed_grey/skin/marker6-rollover.png" data-marker-left="1550" data-marker-top="1663" data-marker-width="27" data-marker-height="27" data-show-after-zoom-factor="0" data-tool-tip-label="GoTo Grey Pano" data-marker-url="http://www.destinyvirtualtours.com/2DMapTest/2DHomeFloorPlan.html?startscene=pano11,_self" data-marker-target="_blank"></li>

<li data-marker-type="link" data-reg-point="centerbottom" data-marker-normal-state-path="skin_embossed_grey/skin/marker3.png" data-marker-selected-state-path="skin_embossed_grey/skin/marker3-rollover.png" data-marker-left="2300" data-marker-top="1133" data-marker-width="27" data-marker-height="34" data-show-after-zoom-factor="0" data-tool-tip-label="GoTo Red Pano" data-marker-url="http://www.destinyvirtualtours.com/2DMapTest/2DHomeFloorPlan.html?startscene=pano12,_self" data-marker-target="_blank"></li>
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

10

Tuesday, October 25th 2016, 12:26pm

dear destiny,

the _self is the 2nd argument of the function openurl(),
you cant just put that into the url property, unless
this gets parsed later on (which i don't assume)

i see you use some data structure.
like this its impossible to say whats your scripts are doing with the contents.
somewhere is some code reads your data and (maybe) uses openurl() to open your url given by the url="..." property
there you must add the _self argument.

if you're adding it in the url="..,self", you are basically doing :
openurl("...,_self"); -> 1 argument, which is not the same like
openurl("...",_self); -> 2 arguments

btw, could it be your data is not read by krpano at all and things are done by js?
in your data there is a target property which holds _blank.
maybe you should just try to set this to _self.
http://www.w3schools.com/TAGS/att_a_target.asp

cheers

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

11

Tuesday, October 25th 2016, 12:51pm

Hi.. I did try to set the _blank to _self and as I said above, it works but.. it then opens a new pano inside the website box.. I think what I am trying to do might be impossible... because its not the media inside the website box that needs to go to _self, its the entire Tour.. If the pano closed with then open map in it, and opened a new pano staying in the same browser window, that would be what I want.. but.. I think I have to make it so the entire map opens in a browser window, basically a new html page with a target _self.. Not even deep linking...... So rather than using a website box, I need to use a url on the hotspot.. That might work.. It would not look as good but its better than nothing. I will try that later.. Its getting later here..

Thank you so much for your input. You have made me think more about my options..

Destiny...
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*

12

Tuesday, October 25th 2016, 1:56pm

did you check the link?
http://www.w3schools.com/TAGS/att_a_target.asp

--> try _parent or _top !

Destiny

Trainee

  • "Destiny" started this thread

Posts: 61

Location: Australia

Occupation: Primary School Teacher and Freelance Photographer

  • Send private message

13

Wednesday, October 26th 2016, 8:22am

Yay!... Thank you index for all your suggestions.. I knew the answer would be simple.. I just changed the _blank to _parent... :)

http://www.destinyvirtualtours.com/2DMap…eFloorPlan.html

I have a 3d map too I can try next.. Love it when things works..

Destiny...
Sometimes I might come across as being stupid; But I have an IQ of 137 *tongue*