Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tooltip position incorrect on imagemap area (only in FF)
8th September, 15:04 (This post was last modified: 8th September 15:13 by Kostas.)
Post: #1
Tooltip position incorrect on imagemap area (only in FF)
My qTip is supposed to display at the top right corner of each "area" tag. In IE, it works as expected. But in FF, the qTip displays at the top right corner of the entire image map.

here's my qtip call:
JS Code
$(document).ready(function(){
   // Use the each() method to gain access to each elements attributes
   $('area').each(function(){
      $(this).qtip({
         content: "test",
         position: {
            corner: {
               target: 'topRight',
               tooltip: 'topLeft'
            },
            adjust: {
               x: 10
            }
         }
      });
   });
});


here's my image map:
JS Code
<img src="blah.jpg" usemap="#treemap" width="688" height="544"/> 
    <map id="treemap" name="treemap">
        <area coords="48,141,92,184" id="sk_t1r2c1"/>
        <area coords="109,65,153,108" id="sk_t1r1c2"/> 
        <area coords="48,65,92,108" id="sk_t1r1c1"/>
  </map>


i'm using rev 157
Find all posts by this user
Quote this message in a reply
8th September, 15:25
Post: #2
Tooltip position incorrect on imagemap area (only in FF)
ajohnson1, I assume you're using the RC3 release? This has very limited support for image maps, which is enhanced considerably under the new branch revisions which you can download here: http://bazaar.launchpad.net/~craig.craig...runk/files

Once you upgrade you'll need ot include the jquery.qtip.imagemap.js, as well as the tip and border files if you are using those features. This should alleviate the problem hopefully, but get back to me with your results.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
8th September, 15:43
Post: #3
Tooltip position incorrect on imagemap area (only in FF)
wow, my area tags didn't have the "shape" attribute. i'm surprised it worked in IE but not in FF. you might want to look into that.

as soon as i added the shape attribute, it worked properly in both RC3 and 157

anyway, thanks for qTip. its great. keep up the good work.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] One Imagemap w/ Tooltip, another without? dangerman 0 61 7th May 22:08
Last Post: dangerman
  [Solved] Ajax imagemap data problem carelmeyer 0 941 1st May 17:39
Last Post: carelmeyer
  [Solved] Problem with my map area installation timtimd 1 244 14th March 17:34
Last Post: Craig
  [Solved] position change when tooltip is cut zuckermanori 6 420 13th February 14:17
Last Post: zuckermanori
  Position of qTip Modal from call within a tooltip chuuke 1 263 17th January 21:54
Last Post: Craig
  Why does the tooltip pop up too low and then slides up into correct position? jbrendel 3 991 16th January 04:24
Last Post: DylanKean1
  [Solved] Incorrect behavior on first click? fred_tededmondsson 16 1,412 20th September 17:49
Last Post: fred_tededmondsson
  [Solved] Dynamic content based off map area befeetback 1 1,048 25th August 18:23
Last Post: Craig
  [Solved] Fixed position for large tooltip? dabd 6 837 17th August 00:54
Last Post: dabd
  [Solved] wrong position using .live() to show tooltip BCLEL 3 1,296 23rd June 14:25
Last Post: BCLEL



User(s) browsing this thread: 1 Guest(s)