Trying to integrate a basic Javascript inside a Custom HTML Map Object and with all the searching I could not find any example of this. In my file I have this:

<!--Custom HTML: GetClicky-->

<div class="map_object map_icon mapicon_status_white" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> TESTING JAVASCRIPT <Span><script src="widgets.clicky.com/tally/?site_id=100883148&sitekey=73345ffgde5735ddecfaf98b5e1e7103&width=175&height=250&title=1on1%20Visitors&hide_title=0&hide_branding=1" type="text/javascript"></script></span> <#mapobject type="htmlafter" subid="<@subid>"> </div>

However when I drag it onto the map its not working. What am I doing wrong?


Article Comments

Hi Sourceminer,

  • First, the http(s):// is missing prior to the target address, this is the reason why the object cannot return any values.
  • Document Write is not possible due to security reasons
  • The iFrame you try to integrate into the map object appears to be empty while trying to integrate it directly into PRTG

Best regards, Felix


Oct, 2015 - Permalink