21 December 2009

ThreeDots: The jQuery Ellipsis Plugin

Content abbreviation made easy: http://tpgblog.com/2009/12/21/threedots-the-jquery-ellipsis-plugin/

2 comments:

Suresh N said...

ellipsis does not work on Firefox. So i found another plugin for ellipsis to work in Firefox.
Below one works but very slow when there are more than 100 div’s.

if (navigator.userAgent.indexOf(“Firefox”) != -1) {
$(“.yui-content div[class*='ellipsis']“).ellipsis();
}

Currently i found this blog, but when i tried to do samething in my code, it does nothing.

if (navigator.userAgent.indexOf(“Firefox”) != -1) {
var obj_text = $(“.yui-content div[class*='ellipsis']“).ThreeDots({ max_rows: 1 });
}

Any idea, why it is not working?

Alex C said...

Try using the Firebug plugin (https://addons.mozilla.org/en-US/firefox/addon/1843/) for Firefox to see why that browser isn't working.

Also, post a question to the YUI forum: http://yuilibrary.com/forum/