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

  • 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???

  • If the action is plazarmas()


    the code look as:

    HTML
    <!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:

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


    Any ideas?

    Thanks

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!