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("http://localhost/tower/sites/default/files/razine/razina1.png") 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>
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | drupal-behaviors-1053786.patch | 2.27 KB | WorldFallz |
Comments
Comment #1
Marko B commentedSeems 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.
Comment #2
Marko B commentedI managed to work this out with adding code to drupal.behaviors, to call again maphilight.
Comment #3
WorldFallz commentedah... 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).
Comment #4
Marko B commentedGlad i could help/contribute :-)
Comment #6
drurian commentedReopening since it hasn't been committed yet.
Comment #7
WorldFallz commentedHere'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.
Comment #8
WorldFallz commentedhttp://drupalcode.org/project/jq_maphilight.git/commit/880c5af