View Full Version : onClick="javascript:(something);" doesn't do anything :-(
Force
07-29-2008, 01:46 PM
Javascript on an onClick doesn't run.
Hi everyone,
if I put a "javascript:"-code to a <spot> onclick="", nothing happen.
what is my mistake? i need to call one javascript-function, but also an simple "alert('test');" doesn't do anything. :-(
force
phberlin
07-30-2008, 05:42 PM
Hi Force,
you need to set an global ExternalInterfaceID for your pano. Additionally, you need to allow scripting via SWFObject. See the javascript example in the FPP documentation called "Panorama with ExternalInterface controller".
Regards, Ph.
Scott Witte
08-05-2008, 03:31 AM
I think you are right about scripting, so.addParam("allowScriptAccess","sameDomain"); for instance. But I never had to set a "global ExternalInterfaceID"
force,
Are you certain you have the exact same spelling of the javascript function in your command and, if not an internal javascript command, then the function name from you html?
vBulletin® v3.7.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.