Seems that ajax breaks workings of this module. I have a setup a view with pager and in header it loads block with image map. When i click to load other pages imagemap stops working. Works only on first page, after that whole that cavnas and div code that is added by module is missing and nothing is shown :(

This is missing


<div style="display: block; background: url(&quot;http://localhost/tower/sites/default/files/razine/razina1.png&quot;) repeat scroll 0% 0% transparent; position: relative; padding: 0pt; width: 680px; height: 175px;"><canvas style="width: 680px; height: 175px; position: absolute; left: 0pt; top: 0pt; padding: 0pt; border: 0pt none; opacity: 1;" height="175" width="680"></canvas><img usemap="#Map1" style="border: 0pt none; width: 680px; height: 175px; opacity: 0; position: absolute; left: 0pt; top: 0pt; padding: 0pt;" src="http://localhost/tower/sites/default/files/razine/razina1.png" id="Map1" class="jq_maphilight maphilighted" alt=""></div>

CommentFileSizeAuthor
#7 drupal-behaviors-1053786.patch2.27 KBWorldFallz

Comments

Marko B’s picture

Seems that when using ajax, then all the stuff under Drupal.behaviors function are loaded again but something for map hilight isnt so it stops working. Any ideas what i should run again in this case? i did try .maphiglight() function but didnt help.

Marko B’s picture

I managed to work this out with adding code to drupal.behaviors, to call again maphilight.

Drupal.behaviors.fusion = function (context) {	

$('.jq_maphilight').maphilight();
.....

WorldFallz’s picture

Status: Active » Fixed

ah... yes, thanks for posting that back. i should have done that to begin with-- it will be that way in the next release (for both d6 and d7).

Marko B’s picture

Glad i could help/contribute :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

drurian’s picture

Status: Closed (fixed) » Active

Reopening since it hasn't been committed yet.

WorldFallz’s picture

Status: Active » Needs review
StatusFileSize
new2.27 KB

Here's a patch against the current 6.x-1.x dev for the time being.. I'll commit as soon as I, or someone else, gets a chance to test it.

WorldFallz’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.