Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtip with jquery mobile tap event
4th January, 19:35 (This post was last modified: 4th January 19:47 by finedesignz.)
Post: #1
qtip with jquery mobile tap event
Hi,

I'm a little new at working with jquery events, but I'm trying to get the qtip to show when I tap the link. Right now, it works fine in a regular browser, but not mobile.
http://jquerymobile.com/demos/1.0/docs/api/events.html

Here's my code so far:
JS Code
$('a.q_tip[title]').qtip({
 
      style: {
          classes: 'ui-tooltip-green ui-tooltip-rounded ui-tooltip-shadow'
           },
        position: {
          my: 'bottom left',  // Position my top left...
          at: 'top right', // at the bottom right of...
          target: 'mouse'
       }
    });


I've been searching all over this forum and on Google, but have yet to understand what I need to do. Forgive me if it's been answered somewhere else. Thank you for your help!
Find all posts by this user
Quote this message in a reply
4th January, 21:18
Post: #2
RE: qtip with jquery mobile tap event
Well first off, that code is for qTip2, not qTip 1.0, which use completely different settings Smile. I'd suggest using qTip2 as 1.0 is no longer actively developed and is a dead project. Regarding the issue, if you want to trigger the qTip on click, set it as the show event:
JS Code
$('a.q_tip[title]').qtip({
    show: {
        event: 'click'
    },
    style: {
        classes: 'ui-tooltip-green ui-tooltip-rounded ui-tooltip-shadow'
    },
    position: {
        my: 'bottom left',
        // Position my top left...
        at: 'top right',
        // at the bottom right of...
        target: 'mouse'
    }
});

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
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  the plugin do not work correctly with jquery 1.7? vic906 1 145 12th April 22:09
Last Post: Craig
  Qtips with jquery UI Issue sherwoodbear79 2 432 15th February 15:36
Last Post: sherwoodbear79
  [Solved] Need some help:codes in Jquery BabyShung 1 338 29th January 16:35
Last Post: Craig
  Tooltips not loading jQuery or other js files from parent document crodesign 2 474 13th January 22:19
Last Post: crodesign
  qtip inside the jquery UI Dialog tiggi 1 781 20th October 18:49
Last Post: Craig
  Google Calendar like bubble for Jquery FullCalendar tdmohr 13 13,002 18th October 07:22
Last Post: jokepondy
  Cannot make jquery plugin or qtip plugin work anindasen 3 983 8th October 13:49
Last Post: Craig
  Tooltip above mouse on event. Muhd 1 829 26th June 12:34
Last Post: Craig
  On jQuery 1.5.1, tips don't appear in IE7 or IE8 panabee 3 1,433 23rd May 17:51
Last Post: Craig
  [Solved] beforeShow event - can't update the tip position to a new value byte_slave 4 1,200 1st April 22:14
Last Post: byte_slave



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