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.

publicitarios360

Fortgeschrittener

  • »publicitarios360« ist der Autor dieses Themas

Beiträge: 330

Wohnort: Habana, Cuba

Beruf: Architect, Photographer.

  • Nachricht senden

1

Freitag, 17. Juni 2016, 05:20

How to invoque any action from external webpage?

Hi, I made this action for use with menu in textfield plugin:

[a href="event:plazarmas(ir)"]Plaza de Armas[/a]

In html5 browser I can see, in status bar, the following:

javascript:document.getElementById('krpanoSWFObject')call('plazaarmas(ir)','plugin[text1]');

My question is:

How to invoque this action from external webpage?

In other words: What is the correct URL for link this action, in order to open the webpage and run this action?

Thanks in advanced,

Fdo

publicitarios360

Fortgeschrittener

  • »publicitarios360« ist der Autor dieses Themas

Beiträge: 330

Wohnort: Habana, Cuba

Beruf: Architect, Photographer.

  • Nachricht senden

2

Freitag, 17. Juni 2016, 17:51

a possible solution...

In example included: javascript-interface >> js-getlink >>getlink.html is possible to get the url of any webpage with simple panorama inside, setting hlookat, vlookat and fov. I need similar thing in multires, plain object. The best for my project is run the action, but else can be run similar code as:

http//:myurl.../examples/getlink.html?xml=getlink.xml&view.hlookat=0.00&view.vlookat=0.00&view.fov=90.00

or the best, anything as:

http//:myurl.../examples/getlink.html?xml=getlink.xml&javascript:document.getElementById('krpanoSWFObject')call('plazaarmas(ir)','plugin[text1]');

Any advice???

publicitarios360

Fortgeschrittener

  • »publicitarios360« ist der Autor dieses Themas

Beiträge: 330

Wohnort: Habana, Cuba

Beruf: Architect, Photographer.

  • Nachricht senden

3

Samstag, 18. Juni 2016, 06:32

solved

If the action is plazarmas()


the code look as:

Quellcode

1
2
3
4
5
<!DOCTYPE html><html><head>	<title>PRUEBA!!!!</title>	<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />	<meta name="apple-mobile-web-app-capable" content="yes" />	<meta name="apple-mobile-web-app-status-bar-style" content="black" />	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />	<meta http-equiv="x-ua-compatible" content="IE=edge" />	<style>		@-ms-viewport { width:device-width; }		@media only screen and (min-device-width:800px) { html { overflow:hidden; } }		html { height:100%; }		body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }	</style>	</head><body>

<script src="tour.js"></script>
<div id="pano" style="width:100%;height:100%;">
	<noscript><table style="width:100%;height:100%;"><tr style="vertical-align:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>	<script>embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"prefer",onready:krpanoReady,passQueryParameters:true});var krpano = document.getElementById("krpanoSWFObject");function krpanoReady(krpano){    krpano.call("plazarmas()");} </script></div></body></html>


Now I will research in order to pass parameters to webpage: Only one html run differents actions. For example:

Mapa.html/plazaarmas >> open Mapa.html and run the action plazaarmas()
Mapa.html/hotelcapri >> open Mapa.html and run the action hotelcapri()


Any ideas?

Thanks

Ähnliche Themen