I tryed to buy the html5 license but not solved the problem
Beiträge von redbass
-
-
I have a problem on create a script that load krpano when user click on button.
I'm running this test script on my local iis and i already have an old base license for krpano player.
This is the test code:HTML
Alles anzeigen<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" charset="utf-8" src="swfkrpano.js"></script> <script type="text/javascript" > addPano = function (pano) { embedpano({ swf: "krpano.swf", xml: "krpano.xml", target: pano, html5: "prefer", html5licenseload: false }); } </script> </head> <body> <button onclick="addPano('pano')">Click</button> <div id="pano" style="position:absolute; width:500px; height:500px; background-color:#b6ff00"></div> <div id="pano1" style="position:absolute; left:550px;width:500px; height:500px; background-color:#b6ff00"> <script> addPano("pano1"); </script> </div> </body> </html>
In this test i added 2 krpano players. The first one is not loaded (id = "pano") and will be loaded by cliccing on button.
The second (pano1) is loaded using the standard method explaind in Krpano documentation site.The example of pano 1 works good.
When i click on button and function is called, the page is destoryed and the result is:HTML<html> <head> <script src="./krpanoiphone.license.js" type="text/javascript" charset="UTF-8"></script> </head> </html>
Is a problem of license? i don't think because id I remove html5: "prefer" parameter from init script the flash version works good
I think that is possible to test the system before buy a license.
Please help Me.