Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unfocus Not Working
13th August, 03:37
Post: #1
Unfocus Not Working
Apologies in advance for being verbose, but I figure more info is better than not enough. I'm using qTip on 2 pages of my client's website and everything works great except that I can't get the "unfocus" instruction working. The tip correctly appears when the user clicks on an image, but only disappears when the user clicks on that same image (closes tip) or clicks on another image with a tooltip (closes tip & opens new tip). If the user clicks outside the image (when it's supposed to close with the unfocus instruction) nothing happens.

My page is a big table of headshots with short biographies of each person in the tip (http://www.kauffmanfellows.org/faculty.aspx). The structure of the page is this:
HTML Code
<td class="faculty">
  <img class="facultyPhoto">
  <div that contains the text for the tip title; display="none">
  <div that contains the rest of the tip text; display="none">
</td>


I've got the following qTip code:

JS Code
$(document).ready (function () {
    // themeroller style defined here
 
    $ ('td.faculty').each (function (){
   // variables defined here - description, titletext, targettext, tooltiptext
 
		$(this).qtip ({
			content: {
                            text: description,
                            title: {
                                text: titletext,
                                button: '[x]'
                            }
                        },
			position: { 
				corner: { 
				    target: targettext, 
				    tooltip: tooltiptext 
				},
				target: $(this).find('img.facultyPhoto')
 
			},   
			show: { when: 'click', solo: true }, 
			hide: 'unfocus', 
			style: { width: 350, 'max-height':400, overflow: 'auto', name: 'themeroller', tip: true }
		});
    });
}) ;


I looked through all the forum posts related to "unfocus" but couldn't find an answer to my problem. I notice that in the other posts on this topic, that the unfocus instruction is written:
JS Code
hide: '<span class="highlight" style="padding-left: 0px; padding-right: 0px;">unfocus</span>'
.
I've tried this option as well, but when I do then nothing works. I am also not able to find any documentation as to why the unfocus instruction needs to be written this way or what it accomplishes.

The other page where I use qTip functions the same, though in that one, the tip contains the RSS feed from each person's blog (http://www.kauffmanfellows.org/society_blogs.aspx).

Thanks in advance for your help! I've got it 99% of the way there, and if I could get this "unfocus" thing working, it'll be a slam dunk.
Find all posts by this user
Quote this message in a reply
13th August, 12:50
Post: #2
RE: Unfocus Not Working
Unfocus has a lot of issues in qTip 1.0, I'd suggest upgrading to qTip2 Smile Other than that I can't really suggest much else, as 1.0 is a dead project

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 2 24 Yesterday 23:31
Last Post: Craig
  [Solved] Show on click, hide on unfocus ttomor 4 154 3rd May 14:39
Last Post: ttomor
  hide on unfocus in build 55 bradw2k 1 341 20th January 17:03
Last Post: Craig
  Dynamic contenct not working property in sortable cleung 5 737 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 547 12th September 17:10
Last Post: Craig
  [Solved] Blanket Destroy not working migdalskiy 2 512 22nd August 22:44
Last Post: migdalskiy
  Simple working example? PeterY 2 957 7th August 20:18
Last Post: kiddailey
  very simple working example? solitario 3 2,641 7th August 20:16
Last Post: kiddailey
  styles and pointy position not working danbuntu 1 941 27th July 23:17
Last Post: Craig



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