<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1078898499337496912.post5284963351749518519..comments</id><updated>2012-01-26T11:13:13.685-08:00</updated><category term='PHP'/><category term='Guest Author'/><category term='jQuery'/><category term='jTruncate'/><category term='Hibernate'/><category term='Kwicks'/><category term='Misc'/><category term='Asciible'/><category term='JavaScript'/><category term='Blogger'/><category term='Java'/><category term='Algorithms'/><category term='Politics'/><category term='Photoshop'/><title type='text'>Comments on jMar's Blog: jTruncate - Text Truncation for jQuery</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.jeremymartin.name/feeds/5284963351749518519/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html'/><author><name>Jeremy Martin</name><uri>http://www.blogger.com/profile/03514319709844297772</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-161047899090651077</id><published>2012-01-26T11:13:13.685-08:00</published><updated>2012-01-26T11:13:13.685-08:00</updated><title type='text'>I&amp;#39;m using this in a mobile application and it ...</title><content type='html'>I&amp;#39;m using this in a mobile application and it works great on iPhone and iPad thus far.&lt;br /&gt;&lt;br /&gt;I did have an issue when trying to get the more/less link to use jquery button UI.  I call the following code after $(&amp;quot;myelement&amp;quot;).jTruncate();&lt;br /&gt;&lt;br /&gt;$(&amp;quot;a.truncate_more_link&amp;quot;).button();&lt;br /&gt;&lt;br /&gt;The button UI embeds a span element inside the link, which the jTruncate plugin removes when switching from moreText to lessText (and vice versa).&lt;br /&gt;&lt;br /&gt;So, rather than replacing all the text within the moreLink, I replaced the following lines:&lt;br /&gt;&lt;br /&gt;moreLink.text(options.lessText);&lt;br /&gt;&amp;amp;&lt;br /&gt;moreLink.text(options.moreText);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;with these:&lt;br /&gt;&lt;br /&gt;moreLink.html(moreLink.html().replace(options.moreText, options.lessText));&lt;br /&gt;&amp;amp;&lt;br /&gt;moreLink.html(moreLink.html().replace(options.lessText, options.moreText));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This will replace the text, leaving any remaining HTML untouched.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/161047899090651077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/161047899090651077'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1327605193685#c161047899090651077' title=''/><author><name>Swanny</name><uri>http://www.blogger.com/profile/09667330714063603389</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-QYuIfAOWW4o/Tl_mEoLCzcI/AAAAAAAAAJA/ibFH_qX5QYw/s220/socialcast_square70.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1553478525'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-4245194308881760132</id><published>2011-12-27T05:51:06.097-08:00</published><updated>2011-12-27T05:51:06.097-08:00</updated><title type='text'>Great code, love the way it looks in general and a...</title><content type='html'>Great code, love the way it looks in general and am planning to use it and credit you in my source.&lt;br /&gt;&lt;br /&gt;Two issues I have though...&lt;br /&gt;&lt;br /&gt;A) When using justified text, on reveal, text doesnt properly justify leaving massive spaces where normally words should be along the top line.&lt;br /&gt;&lt;br /&gt;B) Using 3 short lines of left aligned text, on reveal, first word wont jump back up to top line, stays at the beginning of the bottom line  of text and where it should be, at the top left, there is a white gap.&lt;br /&gt;&lt;br /&gt;Can you assist?&lt;br /&gt;&lt;br /&gt;I am VERY new to jQuery and coding in general, often I dont undertand coding terminology or instruction, so please explain things in simple terms for me :)&lt;br /&gt;&lt;br /&gt;Cress</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/4245194308881760132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/4245194308881760132'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1324993866097#c4245194308881760132' title=''/><author><name>cress</name><uri>http://cressidahaughton.co.uk</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2007742562'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-7461435566925111820</id><published>2011-02-14T06:19:02.158-08:00</published><updated>2011-02-14T06:19:02.158-08:00</updated><title type='text'>Hi there!

I&amp;#39;m using jTruncate for a german si...</title><content type='html'>Hi there!&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using jTruncate for a german site and I was wondering how to use html entities in the jTruncate function? I&amp;#39;m trying to place &amp;#39;Zurück&amp;#39; in the read less text. &lt;br /&gt;&lt;br /&gt;I hope someone has a hint :)&lt;br /&gt;&lt;br /&gt;~ Dorien</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/7461435566925111820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/7461435566925111820'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1297693142158#c7461435566925111820' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-762054920'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-4690433260680082891</id><published>2010-10-09T02:53:26.483-07:00</published><updated>2010-10-09T02:53:26.483-07:00</updated><title type='text'>nice piece, what&amp;#39;s your license for it?</title><content type='html'>nice piece, what&amp;#39;s your license for it?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/4690433260680082891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/4690433260680082891'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1286618006483#c4690433260680082891' title=''/><author><name>Max Roald Eckardt</name><uri>http://www.blogger.com/profile/16352704810890335975</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-943881846'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-7973403410871259892</id><published>2010-02-20T02:49:03.305-08:00</published><updated>2010-02-20T02:49:03.305-08:00</updated><title type='text'>How to make it work when length = 0
... 
var visib...</title><content type='html'>How to make it work when length = 0&lt;br /&gt;... &lt;br /&gt;var visibleLength = options.length + options.minTrail;&lt;br /&gt;            if (body.length &amp;gt; visibleLength) {&lt;br /&gt;                var splitLocation = body.indexOf(&amp;#39; &amp;#39;, options.length);&lt;br /&gt;                if (splitLocation != -1) {&lt;br /&gt;                    // truncate tip&lt;br /&gt;                    var splitLocation = body.indexOf(&amp;#39; &amp;#39;, options.length);&lt;br /&gt;                    if (visibleLength == 0) splitLocation = 0;&lt;br /&gt;                    var str1 = body.substring(0, splitLocation);&lt;br /&gt;&lt;br /&gt;....</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/7973403410871259892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/7973403410871259892'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1266662943305#c7973403410871259892' title=''/><author><name>Cars Market</name><uri>http://www.fullmobile.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1218049039'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-7123518883496489784</id><published>2009-11-12T03:14:35.808-08:00</published><updated>2009-11-12T03:14:35.808-08:00</updated><title type='text'>Thanks for this, it would be good if you could cho...</title><content type='html'>Thanks for this, it would be good if you could chose whether to split on/after a space or just a char position.&lt;br /&gt;&lt;br /&gt;Also, you&amp;#39;re re-defining splitLocation on line 24 with what appears to be the same value as line 21, you could drop that I think :)&lt;br /&gt;&lt;br /&gt;Tim</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/7123518883496489784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/7123518883496489784'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1258024475808#c7123518883496489784' title=''/><author><name>Tim</name><uri>http://www.blogger.com/profile/18239833556065033441</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-729798175'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-1110871819511763971</id><published>2009-10-18T15:41:50.217-07:00</published><updated>2009-10-18T15:41:50.217-07:00</updated><title type='text'>nice sharing.. thanks..</title><content type='html'>nice sharing.. thanks..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/1110871819511763971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/1110871819511763971'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1255905710217#c1110871819511763971' title=''/><author><name>Uğur</name><uri>http://www.blogger.com/profile/04060549753591096272</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-666918146'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-2156251336525362515</id><published>2009-09-30T09:36:05.334-07:00</published><updated>2009-09-30T09:36:05.334-07:00</updated><title type='text'>Nice work!
Samples are working correctly in Firefo...</title><content type='html'>Nice work!&lt;br /&gt;Samples are working correctly in Firefox 3.5.3 on Linux</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/2156251336525362515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/2156251336525362515'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1254328565334#c2156251336525362515' title=''/><author><name>bobk</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2101008575'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-6717618369398237775</id><published>2009-08-12T11:32:47.210-07:00</published><updated>2009-08-12T11:32:47.210-07:00</updated><title type='text'>The examples work in English on Opera 10 beta 2, a...</title><content type='html'>The examples work in English on Opera 10 beta 2, as well as Chrome 2.0.&lt;br /&gt;&lt;br /&gt;I can already think of applications for this plug-in! Cheers for the work you&amp;#39;ve done.&lt;br /&gt;&lt;br /&gt;Greg</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/6717618369398237775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/6717618369398237775'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1250101967210#c6717618369398237775' title=''/><author><name>Greg</name><uri>http://blog.monkey-house.ca</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1017090378'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-7184569094036634101</id><published>2009-04-16T08:08:00.000-07:00</published><updated>2009-04-16T08:08:00.000-07:00</updated><title type='text'>jQuery html() gives the html content of the dom ob...</title><content type='html'>jQuery html() gives the html content of the dom object. so body.length is actually counting the html tags too.&lt;br /&gt;I think text() should be used in this case.&lt;br /&gt;&lt;br /&gt;In addition to that, once the text is split, there's always an empty space next to the visible part once the more button is clicked.&lt;br /&gt;&lt;br /&gt;Truncate plug-ins should be based on a certain width and height of DOM object this way the forced return, this way the second portion of the text is always truncated at the right spot</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/7184569094036634101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/7184569094036634101'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1239894480000#c7184569094036634101' title=''/><author><name>Ronny Karam</name><uri>http://www.ronnykaram.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-855635323'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-1272139666014631106</id><published>2009-02-23T01:09:00.000-08:00</published><updated>2009-02-23T01:09:00.000-08:00</updated><title type='text'>Works perfectly in Chrome. Thanks!</title><content type='html'>Works perfectly in Chrome. Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/1272139666014631106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/1272139666014631106'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1235380140000#c1272139666014631106' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-990465520'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-6603148916389257657</id><published>2009-02-20T00:37:00.000-08:00</published><updated>2009-02-20T00:37:00.000-08:00</updated><title type='text'>Actually, it does work with multi-byte characters,...</title><content type='html'>Actually, it does work with multi-byte characters, but it only splits on spaces, which don't necessarily appear in languages like Japanese and Chinese.  I modified the script to just use the exact length specified if no space is found and it works.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/6603148916389257657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/6603148916389257657'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1235119020000#c6603148916389257657' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-824719400'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-3848501199099994082</id><published>2009-02-19T19:44:00.000-08:00</published><updated>2009-02-19T19:44:00.000-08:00</updated><title type='text'>No, it doesn't work with multi-byte characters.  T...</title><content type='html'>No, it doesn't work with multi-byte characters.  This is the fourth jQuery plugin to do this that I've tried, and none of them work with Japanese.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/3848501199099994082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/3848501199099994082'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1235101440000#c3848501199099994082' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1499038607'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-2716698425211265573</id><published>2009-01-17T09:37:00.000-08:00</published><updated>2009-01-17T09:37:00.000-08:00</updated><title type='text'>Does this plugin work with multi-byte UTF-8 charac...</title><content type='html'>Does this plugin work with multi-byte UTF-8 characters?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/2716698425211265573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/2716698425211265573'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1232213820000#c2716698425211265573' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1891207109'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-2338709386581047209</id><published>2009-01-08T20:42:00.000-08:00</published><updated>2009-01-08T20:42:00.000-08:00</updated><title type='text'>Wow, exactly what I was looking for.  Only one imp...</title><content type='html'>Wow, exactly what I was looking for.  Only one improvement request.  I would love a div that spans the bottom of the message that can contain either text or an image that can be clicked to open and close the quote.  I am picturing plus and minus images.  It would also be cool if the ellipsis text could be clicked to expand the quote.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/2338709386581047209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/2338709386581047209'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1231476120000#c2338709386581047209' title=''/><author><name>Nathan Bunney</name><uri>http://www.blogger.com/profile/12560484967681037046</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1218033960'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-2347219691246553214</id><published>2009-01-07T04:13:00.000-08:00</published><updated>2009-01-07T04:13:00.000-08:00</updated><title type='text'>Nice...i'll definitely try to implement ur menu sy...</title><content type='html'>Nice...i'll definitely try to implement ur menu system on my blog :D. Thank you.&lt;BR/&gt;&lt;A HREF="http://scholarshipsme.blogspot.com" REL="nofollow" TITLE="scholarships solutions"&gt;Scholarships solutions&lt;/A&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/2347219691246553214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/2347219691246553214'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1231330380000#c2347219691246553214' title=''/><author><name>Shaid</name><uri>http://www.blogger.com/profile/03407279960696248571</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1509642392'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-539606589093915600</id><published>2008-12-26T13:34:00.000-08:00</published><updated>2008-12-26T13:34:00.000-08:00</updated><title type='text'>Hi,&lt;br&gt;&lt;br&gt;I am developing a plugin and would like...</title><content type='html'>Hi,&lt;BR/&gt;&lt;BR/&gt;I am developing a plugin and would like to know how you compress your JS?&lt;BR/&gt;&lt;BR/&gt;Thanks,&lt;BR/&gt;&lt;BR/&gt;Jack Franklin</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/539606589093915600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/539606589093915600'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1230327240000#c539606589093915600' title=''/><author><name>Jack Franklin</name><uri>http://www.ispeakwebstuff.co.uk</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-308310999'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-8707429951732132735</id><published>2008-11-10T13:13:00.000-08:00</published><updated>2008-11-10T13:13:00.000-08:00</updated><title type='text'>Would I be correct in assuming that this won't wor...</title><content type='html'>Would I be correct in assuming that this won't work in proper XHTML? As in xhtml served as xml as opposed to the pretend xhtml that is most common (xhtml served as html). The plugin uses the html() function which if I'm not mistaken uses innerHTML and as a result will not work in an xml document.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/8707429951732132735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/8707429951732132735'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1226351580000#c8707429951732132735' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-289028325'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-6591507339358832489</id><published>2008-10-23T17:09:00.000-07:00</published><updated>2008-10-23T17:09:00.000-07:00</updated><title type='text'>I'm curious about lines 21 and 24. &lt;br&gt;&lt;br&gt;21: var...</title><content type='html'>I'm curious about lines 21 and 24. &lt;BR/&gt;&lt;BR/&gt;21: var splitLocation = body.indexOf(' ', options.length);&lt;BR/&gt;22:        if(splitLocation != -1) {&lt;BR/&gt;23:          // truncate tip&lt;BR/&gt;24:          var splitLocation = body.indexOf(' ', options.length);&lt;BR/&gt;&lt;BR/&gt;It may be that I just need more sleep. These lines look like duplicate code and I don't think line 24 will ever change anything even taking local scoping into account.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/6591507339358832489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/6591507339358832489'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1224806940000#c6591507339358832489' title=''/><author><name>Jason</name><uri>http://www.blogger.com/profile/05440006014858054523</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1043561921'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-5995167598321049457</id><published>2008-10-03T09:14:00.000-07:00</published><updated>2008-10-03T09:14:00.000-07:00</updated><title type='text'>Great work, nut^&lt;br&gt;when in text exists html tags ...</title><content type='html'>Great work, nut^&lt;BR/&gt;when in text exists html tags before need count synbol - them tranks too,&lt;BR/&gt;example:&lt;BR/&gt;&amp;quot;Lorem &amp;lt; span color=&amp;quot;#000&amp;quot; &amp;gt;ipsum&amp;lt; /span &amp;gt; dolor sit amet&amp;quot;&lt;BR/&gt;And the count like 10-15 - script dont work.&lt;BR/&gt;If you can fix this bug - its will be great.&lt;BR/&gt;Sorry for my lang, with best wishes from Sevastopolб Russia, Petr</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/5995167598321049457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/5995167598321049457'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1223050440000#c5995167598321049457' title=''/><author><name>Петр</name><uri>http://www.blogger.com/profile/16504022753278325217</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1330250444'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-735435476877310268</id><published>2008-08-15T19:34:00.000-07:00</published><updated>2008-08-15T19:34:00.000-07:00</updated><title type='text'>Good work!&lt;br&gt;&lt;br&gt;There is a bug though. &lt;br&gt;Look ...</title><content type='html'>Good work!&lt;BR/&gt;&lt;BR/&gt;There is a bug though. &lt;BR/&gt;Look in the line:&lt;BR/&gt;var str2 = body.substring(splitLocation, body.length - 1);&lt;BR/&gt;&lt;BR/&gt;This line effectively truncates last character.&lt;BR/&gt;&lt;BR/&gt;Fix should be:&lt;BR/&gt;var str2 = body.substring(splitLocation);&lt;BR/&gt;&lt;BR/&gt;Regards</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/735435476877310268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/735435476877310268'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1218854040000#c735435476877310268' title=''/><author><name>Kamen</name><uri>http://www.blogger.com/profile/08599050340976275899</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1308681025'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-5481801935109440918</id><published>2008-04-17T06:58:00.000-07:00</published><updated>2008-04-17T06:58:00.000-07:00</updated><title type='text'>In ln. 23 you could handle length==0, then one can...</title><content type='html'>In ln. 23 you could handle length==0, then one can (with empty ellipsis and details... as more-text) e.g. show something like&lt;BR/&gt;&lt;BR/&gt;_my link_&lt;BR/&gt;details...&lt;BR/&gt;&lt;BR/&gt;// if split location==0 show only &lt;BR/&gt;//ellipsis text -- to show the first &lt;BR/&gt;//word one can always use length 1&lt;BR/&gt;if (options.length==0) {&lt;BR/&gt;  splitLocation = 0;&lt;BR/&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/5481801935109440918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/5284963351749518519/comments/default/5481801935109440918'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html?showComment=1208440680000#c5481801935109440918' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-5284963351749518519' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/5284963351749518519' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1703123958'/></entry></feed>
