Web application R&D notes, from the world of Java, Flex, CSS, XHTML, Flash, .NET, cross-browser compatibility, JavaScript, AJAX, ADA compliance, Photoshop, and any and all things related to Web development!
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 }); }
2 comments:
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?
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/
Post a Comment