Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Problem with creating qtips on div tag
23rd August, 11:44
Post: #1
[Solved] Problem with creating qtips on div tag
Hi all I am trying to create tooltips in my application I want to have them attached to a divs but I am not able to do that, but when I try to create tooltips on a tr tag there is no problem and tooltips are created.
Here is my code that is creating tooltips.

JS Code
function vytvorTooltipy(){
    $(".center-south tr[id^='row'] div:nth-child(1)").qtip({
        content: "",
        show: 'mouseover',
        hide: 'mouseout', 
        adjust: {
            screen: 'true'
        },
        position: {
            corner: {
                target: 'bottomMiddle',
                tooltip: 'topMiddle'
            }
        },
        api:{
         onRender: function(){
            var self = this;
            var selfJQuery = self.elements.target;
            var title = "";
            var nazevProcesu = "";
            var idRadku = "";
 
            nazevProcesu = vratNazevProcesu();
                if(selfJQuery.find('input:nth-child(2)[id]').length != 0){
                    idRadku = selfJQuery.find('input:nth-child(2)').attr("id").split("_")[0];
                }else if(selfJQuery.find('select[id]').length != 0){
                    idRadku = selfJQuery.find('select').attr("id").split("_")[0];
                }else if(selfJQuery.find('td:nth-child(1)[id]').length != 0){
                    idRadku = selfJQuery.find('td:nth-child(1)').attr("id").split("_")[0];   
                }else{
                    idRadku = "";
                }
            NapovedaDwr.vratTootlip(nazevProcesu, idRadku, function(data){
                self.updateContent(data,false);
            });
         }
      }
 
    })
}


and even when I try in firebug that selector that should select all desired tags it shows them
Find all posts by this user
Quote this message in a reply
23rd August, 14:19
Post: #2
RE: Problem with creating qtips on div tag
Kolkar, are you sure some content is actually being retrieved? I see your logic, but if it doesn't update the tooltip content properly its unlikely they'll show up. Also, it could be a problem with the div itself not triggering the show events due to z-index problems. Do you have a live page up we can take a look at?

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
23rd August, 16:02
Post: #3
RE: Problem with creating qtips on div tag
It even did not create tooltips, there is no content created at first load of a page, and in firebug $(this).data("qtip") is null appears on line 138 of a plugin script.
Find all posts by this user
Quote this message in a reply
23rd August, 16:41
Post: #4
RE: Problem with creating qtips on div tag
I am able to reproduce this error using both jquery.qtip-1.0.0-rc3.js in conjunction with jquery-1.4.2.js. Switching to jquery-1.4.1.js seems to resolve this issue.
Find all posts by this user
Quote this message in a reply
23rd August, 20:43
Post: #5
RE: Problem with creating qtips on div tag
Kalyko, use the latest 1.0 revision here if you plan on using 1.4.2: http://bazaar.launchpad.net/~craig.craig.../1.0/files

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
24th August, 06:15
Post: #6
RE: Problem with creating qtips on div tag
Thanks Craig switching to the newest version of qtip helped me perfectly Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Multiple qtips on one page, content disappearing russau 3 132 3rd May 16:38
Last Post: Craig
  [Solved] Ajax imagemap data problem carelmeyer 0 941 1st May 17:39
Last Post: carelmeyer
  [Solved] qTip Ajax data for text in a div akhil_csit 1 325 14th March 19:27
Last Post: Craig
  can't hide qtip in a “position: absolute;” div shdog 1 283 14th March 17:35
Last Post: Craig
  [Solved] Problem with my map area installation timtimd 1 246 14th March 17:34
Last Post: Craig
  Qtips with jquery UI Issue sherwoodbear79 2 448 15th February 15:36
Last Post: sherwoodbear79
  Hiding tooltip problem sohailanwarpk 2 408 31st January 12:13
Last Post: sohailanwarpk
  [Solved] creating a qtip with ajax contents based on computed uri params punk.kish 1 419 25th January 15:50
Last Post: Craig
  show qtip in a specified div or position myapweb 1 593 27th December 17:53
Last Post: Craig
  [Solved] QTip content from existing div element on page? dcash 4 2,531 8th December 18:29
Last Post: Craig



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