Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] wrong position using .live() to show tooltip
22nd June, 10:19
Post: #1
[Solved] wrong position using .live() to show tooltip
Hi all,

I'm having a strange issue, perhaps you can help

I want all anchors that have a qtip attribute to show a qtip (even the ones that I generate dynamically). Therefore, I have tried this approach after document load:

JS Code
$('a[qtip]').live('mouseover', function(event) {
            $(this).qtip({
                        overwrite: false,
                        content: $.attr(this,'qtip'),
                        style: {
                                 border: {
                                 width: 2,
                                 radius: 3,
                                 color: '#437B85'
                                     },
                                name: 'light', tip: true
                            },
                            position: {corner: {target: 'rightMiddle',tooltip: 'rightMiddle' }},
                            show: { delay:0, event:event.type, ready:true }
                            hide: { fixed: true }
                    }, event)
            })


the tooltip is in fact shown, but always on the bottom left corner of the window. I also tried to use
JS Code
position: {
                              my: 'top left',  // Position my top left...
                              at: 'bottom right', // at the bottom right of...
                              target: $(this) // my target
                           }

with no luck... what could be the issue? From what I can see in the documentation, it should work

thanks in advance!
Find all posts by this user
Quote this message in a reply
22nd June, 12:47
Post: #2
RE: wrong position using .live() to show tooltip
Which qTip version and you using? The second configuration with the my/at values is qTip2 only, and the first is for qTip 1.0. If you're using qTip2, remove the target property as it's set for you automatically.

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
22nd June, 12:53
Post: #3
RE: wrong position using .live() to show tooltip
Hi Craig,

thanks for the reply.

I'm using qTip v1, and originally I was using

position: {corner: {target: 'rightMiddle',tooltip: 'rightMiddle' }},

it didn't work, that is why I tried the other config, to no avail.

(22nd June 12:47)Craig Wrote:  Which qTip version and you using? The second configuration with the my/at values is qTip2 only, and the first is for qTip 1.0. If you're using qTip2, remove the target property as it's set for you automatically.
Find all posts by this user
Quote this message in a reply
23rd June, 14:25
Post: #4
RE: wrong position using .live() to show tooltip
Hi Craig,

I have updated to qTip2, and now it's working fine. Thanks for your help!



(22nd June 12:53)BCLEL Wrote:  Hi Craig,

thanks for the reply.

I'm using qTip v1, and originally I was using

position: {corner: {target: 'rightMiddle',tooltip: 'rightMiddle' }},

it didn't work, that is why I tried the other config, to no avail.

(22nd June 12:47)Craig Wrote:  Which qTip version and you using? The second configuration with the my/at values is qTip2 only, and the first is for qTip 1.0. If you're using qTip2, remove the target property as it's set for you automatically.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Show on click, hide on unfocus ttomor 4 154 3rd May 14:39
Last Post: ttomor
  [Solved] position change when tooltip is cut zuckermanori 6 420 13th February 14:17
Last Post: zuckermanori
  js only show admeis 1 275 6th February 18:00
Last Post: Craig
  [Solved] Form submit grabbing wrong value loveccb 3 569 26th January 16:53
Last Post: ramon.alvarez
  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
  show qtip in a specified div or position myapweb 1 587 27th December 17:53
Last Post: Craig
  [Solved] Show qTip when button pressed sulfurcode 1 562 1st December 11:15
Last Post: Craig
  [Solved] Is there an easier way to show/hide tooltips dynamically? gloosemo 1 683 17th October 15:58
Last Post: Craig
  [Solved] Fixed position for large tooltip? dabd 6 837 17th August 00:54
Last Post: dabd



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