Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not working in IE6 or IE7
30th December, 16:14 (This post was last modified: 30th December 16:17 by qTipper.)
Post: #1
Not working in IE6 or IE7
Love the qTip, but am in a bit of an IE 6 and 7 fight, which always seems to be the case.

I have the latest release of both jQuery and qTip, I have finally gotten 6 and 7 to stop throwing errors, but neither one shows the qTip, I'm a bit of a noob in the JavaScript realm, so I'm hoping it's a goofy syntax thing I'm messing up.

I'm bringing in my js files just before the closing body tag, I load the jQuery file, the qTip file, then the JS file that has my specific qTip code.

JS Code
<script language="JavaScript" type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script language="JavaScript" type="text/javascript" src="jquery.qtip-1.0.0-rc3.min.js"></script>
<script language="JavaScript" type="text/javascript" src="qtip.js"></script>


The code for the qtip.js file is as follows:
JS Code
$('.notActive[title]').qtip({
 
 
   show: { when: { event: 'mouseover' }, effect: { type: 'fade' }, delay: 0 },
   hide: { when: { event: 'mouseout' }, effect: { type: 'fade', length: 500 }, delay: 0 },
 
   position: { corner: { target: 'topMiddle', tooltip: 'bottomMiddle'}
   },
 
   style: {
      border: { width: 2,radius: 5,color: '#ffba59' },
      padding: 10, 
      textAlign: 'center',
      background: '#fff8ab',
      color: 'black',
      tip: { corner: 'bottomMiddle', size: {x: 20,y: 8, } },   
      name: 'cream' // inherit the rest of the preset 'cream' style
      }
 
 
 
 });


If I remove the "tip" attribute (or is it an object at this point) it will work in 7, but not in 6.

It all works fine in IE 8, Firefox 3.5, Safari 4, and Chrome for Mac

Any help is appreciated, Thanks!

Erik
Find all posts by this user
Quote this message in a reply
31st December, 13:52
Post: #2
Not working in IE6 or IE7
eirkpanson, watch out for trailing commas in your code. IE absolutely hates them!

JS Code
tip: { corner: 'bottomMiddle', size: {x: 20,y: 8, } },


Should be
JS Code
tip: { corner: 'bottomMiddle', size: {x: 20,y: 8 } },

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
31st December, 14:23
Post: #3
Not working in IE6 or IE7
That fixed it! I love you man. Big Grin
Find all posts by this user
Quote this message in a reply
31st December, 16:50
Post: #4
Not working in IE6 or IE7
Glad to spread the love Wink

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
  qtip only working the first time harjits 0 12 18th May 14:23
Last Post: harjits
  Dynamic contenct not working property in sortable cleung 5 733 8th December 18:45
Last Post: Craig
  Youtube demo not working on ffox 6 & 7 ivanmayes 2 696 11th October 17:14
Last Post: ivanmayes
  [Solved] Why is this not working - Link nested in tooltip needed 1 543 12th September 17:10
Last Post: Craig
  [Solved] Blanket Destroy not working migdalskiy 2 510 22nd August 22:44
Last Post: migdalskiy
  Unfocus Not Working biglesliep 1 759 13th August 12:50
Last Post: Craig
  Simple working example? PeterY 2 954 7th August 20:18
Last Post: kiddailey
  very simple working example? solitario 3 2,634 7th August 20:16
Last Post: kiddailey
  styles and pointy position not working danbuntu 1 938 27th July 23:17
Last Post: Craig
  [Solved] qTip input fields validation not working with display:none Maverick 6 1,412 25th July 16:44
Last Post: Maverick



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