Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] old tooltips coming back
26th June, 06:04
Post: #1
[Solved] old tooltips coming back
Hi,

I have a few images, that when people move over are suppose to provide additional detail.

So everything is working great, all the data is displaying as I'd like it too, however... old tooltips keep coming back.

So lefts say I mouseover image #1 and it says "Hello" in a tooltip.

Then I go mouseover image #2, I get a new tooltip with "hello image 2", however, in the background, I see the old toolip from image #1.

Then when I go to image #3, the tooltips from #1, #2 and #3 appear.

when I mouseout, everything is disappearing.. they aren't getting stuck.[/b]

HTML
JS Code
echo "<td width='7%' class='progress' rowspan='2'><img src='/includes/img/progress/".$progress_image."' style='width: 45px; height: 45px' o<strong></strong>nmouseover='showProgress(\"".$ilist."\")' /></td>";



JAVA
JS Code
function showProgress(where){
 
		$('.progress').qtip({
			content: {
				url: '/includes/php/ajax.php',
				data: {call:'progression',where:where},
				method: 'post'	
			},
			show: 'mouseover',
			hide: 'mouseout',
			style: {
				name: 'dark',
				background: '#191F23',
				border: {
					width: 1,
					radius: 3,
					color: '#FFF'
				}
			},
			position: {
      			corner: {
         			target: 'topRight',
        			tooltip: 'bottomLeft'
		        }
		    }
		});
 
}
Find all posts by this user
Quote this message in a reply
26th June, 12:28
Post: #2
RE: old tooltips coming back
Try putting only the list ID in an attribute when you echo:
PHP Code
echo "<td width='7%' class='progress' rowspan='2'><img src='/includes/img/progress/".$progress_image."' style='width: 45px; height: 45px' rel='".$ilist."'/></td>";

Then grabbing it using an each loop:
JS Code
$('.progress').qtip({
      $(this).qtip({
         content: {
            url: '/includes/php/ajax.php',
            data: {
                 call: 'progression',
                 where: $('img', this).attr('rel')
            },
            method: 'post'   
         },
         show: 'mouseover',
         hide: 'mouseout',
         style: {
            name: 'dark',
            background: '#191F23',
            border: {
               width: 1,
               radius: 3,
               color: '#FFF'
            }
         },
         position: {
               corner: {
                  target: 'topRight',
                 tooltip: 'bottomLeft'
              }
          }
      });
});

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
26th June, 15:02
Post: #3
RE: old tooltips coming back
I'm gtting a line error on line 5... and I can't seem to see where the error could be.

All the quotes, commas, brackers are all correct it seems, but it's not accepting it..

it seems there it s a problem with

JS Code
$('.progress').qtip({
			$(this).qtip({
 
....
 
});
 
});


(26th June 12:28)Craig Wrote:  Try putting only the list ID in an attribute when you echo:
PHP Code
echo "<td width='7%' class='progress' rowspan='2'><img src='/includes/img/progress/".$progress_image."' style='width: 45px; height: 45px' rel='".$ilist."'/></td>";

Then grabbing it using an each loop:
JS Code
$('.progress').qtip({
      $(this).qtip({
         content: {
            url: '/includes/php/ajax.php',
            data: {
                 call: 'progression',
                 where: $('img', this).attr('rel')
            },
            method: 'post'   
         },
         show: 'mouseover',
         hide: 'mouseout',
         style: {
            name: 'dark',
            background: '#191F23',
            border: {
               width: 1,
               radius: 3,
               color: '#FFF'
            }
         },
         position: {
               corner: {
                  target: 'topRight',
                 tooltip: 'bottomLeft'
              }
          }
      });
});
Find all posts by this user
Quote this message in a reply
26th June, 15:11
Post: #4
RE: old tooltips coming back
Woops that first one should be an .each(function(){ not a .qtip({
JS Code
$('.progress').each(function(){
         $(this).qtip({

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
26th June, 17:55
Post: #5
RE: old tooltips coming back
works great.. thank you very much 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] Pausing Vimeo on tooltips called with AJAX? daver_cl 4 383 14th March 20:39
Last Post: Craig
  [Solved] ColdFusion & Tooltips shimmoril 2 335 13th February 14:48
Last Post: shimmoril
  Tooltips not loading jQuery or other js files from parent document crodesign 2 477 13th January 22:19
Last Post: crodesign
  [Solved] Autohide tooltips after set time phuson 25 4,130 9th December 11:40
Last Post: stevenday
  [Solved] Is there an easier way to show/hide tooltips dynamically? gloosemo 1 683 17th October 15:58
Last Post: Craig
  Fixed Tooltips TheKramers 0 487 16th September 05:07
Last Post: TheKramers
  [Solved] Many tooltips on image map causing slow down purplespider 2 1,056 2nd September 15:15
Last Post: purplespider
  Blinking tooltips - also happens on craigsworks.com arne 1 916 18th July 11:40
Last Post: Craig
  Modal tooltips on modal tooltips Dukegatts 2 535 17th June 07:38
Last Post: Dukegatts
  [Solved] Multiple image maps, different tooltips glennp 1 1,504 21st April 16:32
Last Post: tafs7



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