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...
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...
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:
https://krpano.com/docu/actions/#openurl
Best regards,
Klaus
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/2DMapTest/2DHo…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/2DMapTest/2DHo…artscene=pano10
http://www.destinyvirtualtours.com/2DMapTest/2DHo…artscene=pano11
http://www.destinyvirtualtours.com/2DMapTest/2DHo…artscene=pano12
http://www.destinyvirtualtours.com/2DMapTest/2DHomeFloorPlan.html
I feel there is a simple fix but for me its not like turning on a light.
Destiny...
Hi.. What does "calc" mean.... Where do I add it..
Destiny..
i dont know why you people talk about "openRUK" ???
just see again here: https://krpano.com/docu/actions/#openurl
and here: https://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
best, index
Sorry, that was the spelling correction.
Use the docs i would say.
Tuur
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...
Display Morei dont know why you people talk about "openRUK" ???
just see again here: https://krpano.com/docu/actions/#openurl
and here: https://krpano.com/docu/actions/#calcyou 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 exampleps, 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
best, index
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..
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[/color]" 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[/color]" data-marker-target=[color=#ff00ff]"_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="[color=#ff0000]http://www.destinyvirtualtours.com/2DMapTest/2DHomeFloorPlan.html?startscene=pano12,_self[/color]" data-marker-target="[color=#ff00ff]_blank"></li>
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
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...
did you check the link?
http://www.w3schools.com/TAGS/att_a_target.asp
--> try _parent or _top !
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/2DMapTest/2DHomeFloorPlan.html
I have a 3d map too I can try next.. Love it when things works..
Destiny...
Don’t have an account yet? Register yourself now and be a part of our community!