Javascript Tooltip / Posts /

Change the height of the tooltip by jquery

20
Hello.
Thanks for this great tool.
I'm not able to change the height of id="mcTooltip", by this way : 
$("#mcTooltip").css("height","84");

I have Ajax form, where user adds his favorite posts. Tooltip shows the posts, but unforunately if it isempty, it's height is 20px, after adding post it should become 84px. But $("#mcTooltip").css("height","84"); not effecting to height of a block.

Thanks in advance! :)







Refresh  11 years ago   viewed: 8159    

3 Answers

0
I did in this way:  tooltip.ajax('#mcTooltip', { height:120});
But no effects. Coudn't find your online document.
Appriciate any help :)
Refresh
  11 years ago
4
The online instruction is on page http://www.menucool.com/tooltip/javascript-tooltip

You missed the url parameter in your tooltip.ajax call. Without the url, the tooltip has nowhere to retrieve the tooltip content.

If at the time you launch the tooltip the content has already been ready on your page, don't use the tooltip.ajax, use tooltip.pop method instead. tooltip.ajax is only used when the content is not ready on your page and you are going to fetch the content from an external resource.


milo   11 years ago
1
There is no need to use jQuery to change the height. Tooltip has its own mechanism to determine the height.
In your case, you need to pop up the tooltip in an Ajax way:

tooltip.ajax(targetElement, url[, ajaxSettings][, options])

Please refer to our online document for detailed instructions.
milo
  11 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: