Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] qTips hanging in IE8
21st February, 16:52 (This post was last modified: 21st February 16:55 by bNj.)
Post: #1
[Solved] qTips hanging in IE8
Hello Craig,

i experiencing a big problem while using qTips in IE8.
It's working fine in FF but with IE8 browser completly hanging while i mouseover my img !
Here is a sample of my JS :

JS Code
homeCore.createQtip = function(portletContent){
	portletContent
		.find('a')
			.find('img')
				.each(function(){
					var id = $(this).attr('id');
					var portletID = $(this).parents('.portlet-section').attr('id');
					$(this).qtip({
						content:{
							text: 'Loading...',
							ajax:{
								url: 'main_ajax.asp',
								type: 'get',
								data: {
									mode: 'hover_info',
									portletID: portletID,
									id: id
								}
							}
						},
						position: {
							at: "right center",
							my: "left center",
							viewport: $(window)
						},
						style: {
							classes: 'ui-tooltip-light ui-tooltip-shadow ui-tooltip-rounded'
						}
					})
				})
}


Do you have an idea ?

Thank you.
Find all posts by this user
Quote this message in a reply
21st February, 19:22
Post: #2
RE: qTips hanging in IE8
Hmm, well first you can minimize it down a bit by combining selectors:

JS Code
homeCore.createQtip = function(portletContent)
{
	portletContent.find('a img').each(function() {
		var id = $(this).attr('id'),
			portletID = $(this).parents('.portlet-section:first').attr('id');
 
		$(this).qtip({
			content:{
				text: 'Loading...',
				ajax:{
					url: 'main_ajax.asp',
					type: 'get',
					data: {
						mode: 'hover_info',
						portletID: portletID,
						id: id
					}
				}
			},
			position: {
				at: 'right center',
				my: 'left center',
				viewport: $(window)
			},
			style: {
				classes: 'ui-tooltip-light ui-tooltip-shadow ui-tooltip-rounded'
			}
		})
	})
}


Other than that it should work fine.. no reason it should hang. You sure you're not accidentally calling it loads of times or something? Might be some different code thats the problem?

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 February, 07:55
Post: #3
RE: qTips hanging in IE8
Thanks for your reply.
But it still not working, i don't understand why.
I have disable the call to homeCore.createQtip then it's working fine in IE.
And then I call directly in address bar jhomeCore.createQtip() after changing portletContent.find('a img') to $('.portlet-content-section').find('a img') and when i mouseover an img, IE8 hang.
I will investigate and i let you know ...
Find all posts by this user
Quote this message in a reply
22nd February, 11:01
Post: #4
RE: qTips hanging in IE8
It seems that on IE8 i have a infinite loop on the reposition method line 1001 with an event.type 'resize' but i don't know where it is called from.
Find all posts by this user
Quote this message in a reply
22nd February, 13:53 (This post was last modified: 22nd February 14:09 by bNj.)
Post: #5
RE: qTips hanging in IE8
JS Code
// Adjust positions of the tooltip on window resize if enabled
			if(posOptions.adjust.resize || posOptions.viewport) {
				//$($.event.special.resize ? posOptions.viewport : window).bind('resize'+namespace, repositionMethod);
			}
 
			// Adjust tooltip position on scroll if screen adjustment is enabled
			if(posOptions.viewport || (IE6 && tooltip.css('position') === 'fixed')) {
				//$(posOptions.viewport).bind('scroll'+namespace, repositionMethod);
			}


I have comment these 2 lines (538 and 543) and it solved my problem of infinite loop.
Now qtips are slow to shown but it's working anyway ...
JS Code
position: {
							at: "right center",
							my: "left center"/*,
							viewport: $(window)*/
						},


Just removing viewport solved the issue but i need this fonctionnality Sad
Find all posts by this user
Quote this message in a reply
23rd February, 00:33
Post: #6
RE: qTips hanging in IE8
reposition should only be being fired on browser window resize... are you resizing the browser in a loop or something? O_o

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 February, 09:28 (This post was last modified: 23rd February 10:13 by bNj.)
Post: #7
RE: qTips hanging in IE8
I've found a blog where it's explain exactly the problem i encounter with qTip on IE.
And there is a demo of this bug : http://remysharp.com/2008/05/15/windowon...6-and-ie7/
I've found the problem !

It was this property in my CSS file :
body {height:100%;}
Remove this property do the trick ! Wink

Thank for your support Craig, 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
  Multiple qtips one target... using an each() statement wtgmatt 1 11 20th May 21:17
Last Post: Craig
  [Solved] clear qtips when rebuilding DOM dfrankson 4 188 4th April 14:24
Last Post: dfrankson
  [Solved] How can I manually show qtips when needed? yougotnet 3 222 28th March 15:40
Last Post: Craig
  [Solved] JS created qtips, only "last" qtip generated displays ZacWolf 2 220 26th March 14:11
Last Post: ZacWolf
  [Solved] Adding a handler to something in qtips title ewalsh 3 329 26th February 12:06
Last Post: ewalsh
  [Solved] unwanted modal delay, when content contains image, IE8 and lower. oldie85 1 291 21st February 04:44
Last Post: Craig
  [Solved] qtips are visible only once fourgood 2 386 17th February 14:29
Last Post: fourgood
  [Solved] ajax qtips slide in, no matter what i try jerrye 2 271 16th February 18:35
Last Post: jerrye
  [Solved] two qtips on same element on different events witschi87 3 515 9th February 18:30
Last Post: Craig
  tip corner looks bad in IE8 taluk 1 293 6th February 17:59
Last Post: Craig



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