Created a new screen, window=true..
Added and HTML container with the following HTML
Code: Select all
<i><img src="/profoundui/userdata/images/DLR18-0198_DMS-Edge_Digital-Ad_668x250_v2.jpg" alt="Website map" usemap="#mapname" />
<map name="mapname">
<area class="dmsedge" shape="rect" coords="370,213,667,248" href="http://www.dmsedge.com" target="_blank">
</map></i>
So what I really want is an "on-click" event for the image map, rather than the browser handling opening the URL. A little searching found a SO question (https://stackoverflow.com/questions/299 ... ea-element) with a link to the following JS Fiddler https://jsfiddle.net/bL5rgstg/
So I added the class="dmsedge" to the map and added the following in the screen on-load event
Code: Select all
$(window).load(function(){
$(".dmsedge").on("click", function(e){
e.preventDefault();
window.open('http://www.dmsedge.com', '_blank');
});
});
However, it works fine inside a local .HTML file on my PC.
I've noticed a message sometimes when debugging with chrome, something like "map source detected".
I'm wondering if PUI is doing something after the on-load that's wiping out my changes...or if it's doing something special with image maps that causes my solution to not work.
Any advice on how to get this to work they way I want?
Thank you!