To answer my own question

In case someone needs it.
This is the correct way to specify the function in the XML file. clickData should only contain function name, no parentheses or semicolon.
All works now.
Code: Select all
<hotspots>
<hotspot id="hotspotred" renderMode="0" indicatorImage="hotspot-icon-dupont.png" activateOnClick="true" effects="scaleUp">
<spotinfo clickAction="11" clickData="showDetails" />
</hotspot>
<hotspot id="hotspotblue" renderMode="0" indicatorImage="hotspot-icon-dupont.png" activateOnClick="true" effects="scaleUp">
<spotinfo clickAction="11" clickData="showDetails" />
</hotspot>
<hotspot id="hotspotgreen" renderMode="0" indicatorImage="hotspot-icon-dupont.png" activateOnClick="true" effects="scaleUp">
<spotinfo clickAction="11" clickData="showDetails" />
</hotspot>
<hotspot id="hotspotyellow" renderMode="0" indicatorImage="hotspot-icon-dupont.png" activateOnClick="true" effects="scaleUp">
<spotinfo clickAction="11" clickData="showDetails" />
</hotspot>
</hotspots>
And then you can add whatever you need to your function.
Code: Select all
<script language="javascript" type="text/javascript">
function showDetails(){
console.log("Show Details Function Works!");
};
jQuery(document).ready(function(){
jQuery('#wr360PlayerId').rotator({
licenseFileURL: 'license.lic',
configFileURL: '360_assets/HouseHotspotJavaScript/index.xml',
graphicsPath: 'imagerotator/html/img/basic',
alt: 'JavaScript Action Test',
responsiveBaseWidth: 1920,
responsiveMinHeight: 0,
googleEventTracking: false,
});
});
</script>