[jQuery] Re: Overlib like funtionality with JQuery

2007-04-06 Thread Jörn Zaefferer


Brian Miller schrieb:

This way, if I wanted to simply state what the content of a particular
tooltip is with a static HTML string, I could do that.
  
That makes sense to specify the text to display for external links. I'll 
try to find a nice solution for that.

If you wanted to be really complete about it, you could scan the HTML in
order to properly handle tables and other HTML that doesn't render very
well using innerHTML in IE.  But, that seems like a lot of work for not a
lot of benefit.
  
I haven't experienced any particular problems in IE when putting a 
complete table into innerHTML.

Maybe you can also have a settings.bodyNode, so that people can use
something like jQuick or Taconite to build a proper DOM node, and the
tooltip plugin can simply drop it where the tip body goes.
  

Interesting, but not sure how or where that is actually useful.

--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Overlib like funtionality with JQuery

2007-04-05 Thread weepy

yes theres jtip

http://codylindley.com/Javascript/264/jtip-a-jquery-tool-tip



On Apr 5, 7:08 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Overlib is a JS library with lots of cool features for JS popups.

 http://www.bosrup.com/web/overlib/

 I wonder if there is anything like this already built into JQuery or
 possibly in a plugin.

 Thanks.



[jQuery] Re: Overlib like funtionality with JQuery

2007-04-05 Thread Brian Miller

Since you're asking... :)

It would be nice if I could declare the tip body HTML with a string,
rather than requiring a bodyHandler function.  This way, for static
tooltip content, I can be lazy and type a little bit less.  :-D

Thanks!

- Brian


 [EMAIL PROTECTED] schrieb:
 Thanks for info.  I also found Hovertips:

 http://www.dave-cohen.com/node/1186

 However, of them all, I think I like tooltip the best.  jtip was AJAX
 based which is more functionality than I need and will be slower.
 Hovertips may have more functionality than tooltip, but the code
 seemed a little less elegant.

 Let me know if there is anything you miss in the tooltip plugin, I'm
 going to work on it anyway.

 --
 Jörn Zaefferer

 http://bassistance.de



[jQuery] Re: Overlib like funtionality with JQuery

2007-04-05 Thread Brian Miller

 Brian Miller schrieb:
 Since you're asking... :)

 It would be nice if I could declare the tip body HTML with a string,
 rather than requiring a bodyHandler function.  This way, for static
 tooltip content, I can be lazy and type a little bit less.

 Sounds good, can you explain that a bit more? Maybe just post how your
 code and markup using the feature would look like.

Right now you have this:
if ( settings.bodyHandler ) {
tTitle.hide();
tBody.html( settings.bodyHandler.call(this) ).show();
} else if (...) {

I'm thinking of adding something like:
} else if ( settings.bodyHTML ) {
tTitle.hide();
tBody.html( settings.bodyHTML ).show();
} else if (...) {

This way, if I wanted to simply state what the content of a particular
tooltip is with a static HTML string, I could do that.

If you wanted to be really complete about it, you could scan the HTML in
order to properly handle tables and other HTML that doesn't render very
well using innerHTML in IE.  But, that seems like a lot of work for not a
lot of benefit.

Maybe you can also have a settings.bodyNode, so that people can use
something like jQuick or Taconite to build a proper DOM node, and the
tooltip plugin can simply drop it where the tip body goes.

Just throwing some ideas out there, to see which ones stick.  :)

- Brian