Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get the content of a tooltip?
27th November, 15:44
Post: #1
how to get the content of a tooltip?
I am using the url property to load the content from a page.I'm hooking to the beforeShow event but how can I get the content that I'm about to display?

JS Code
$(this).qtip(
{
content: {
url: tooltipUrl
},
api: {
beforeShow: function(){ alert("the content here??"); }
}
});
Find all posts by this user
Quote this message in a reply
27th November, 20:36
Post: #2
how to get the content of a tooltip?
overthetop, if you're looking to parse the content in some way before it's shown use the beforeContentUpdate, which supplies you with the content that is about to be used to update the tooltip. For for information check the documentation: http://craigsworks.com/projects/qtip/doc...tentUpdate

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
30th November, 10:26 (This post was last modified: 30th November 14:46 by everisk.)
Post: #3
how to get the content of a tooltip?
craig Wrote:overthetop, if you're looking to parse the content in some way before it's shown use the beforeContentUpdate, which supplies you with the content that is about to be used to update the tooltip. For for information check the documentation: http://craigsworks.com/projects/qtip/doc...tentUpdate

hi craig

I handled that event but the content parameter was 'undefined' (although the tooltip is showing with content! ). why this is not working?
Find all posts by this user
Quote this message in a reply
1st December, 19:22
Post: #4
how to get the content of a tooltip?
That's very odd. Thinking about it RC3 had some issues with this particular usage case... you could try out the new branch revisions which should fix this issue:

http://bazaar.launchpad.net/~craig.craig...runk/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
Post Reply 




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