Forum Discussion
Hey Doug -
I'm trying to apply some jQuery plug-ins on some REST, but I'm having issues. The plug-ins work properly with just normal text, but not with the REST calls. Here is a sample below. I'm using the <@liscript> you mentioned above....Any ideas?
<script src="/html/assets/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="html/assets/jquery.jtruncate.pack.js" type="text/javascript"></script>
<@liaAddScript>
$(document).ready(function() {
$('#truncTest').jTruncate({
length: 25,
minTrail: 20,
moreText: "[see all]",
lessText: "[hide extra]",
ellipsisText: " ...",
moreAni: "fast",
lessAni: 2000
});
$('#desc').jTruncate({
length: 20,
minTrail: 20,
moreText: "[see all]",
lessText: "[hide extra]",
ellipsisText: " ...",
moreAni: "fast",
lessAni: 2000
});
});
(LITHIUM.jQuery);
</@liaAddScript>
<!-- This one below works just fine -->
<span id="truncTest">TEST TEST TEST TEST TEST TEST TEST EST TEST TEST TEST TEST TEST TEST EST TEST TEST TEST TEST </span>
<!-- This one doesn't -->
<#assign count = rest("/categories/id/${category.id}/boards/count").value />
<h3 id="desc" style="margin-bottom:7px; font-size:12px;">${description}</h3>
- catherine_OTX14 years agoGuide
My mistake Doug! Turns out I was using the id tag when I should have been using the class tag. Thanks for your patience! Thanks, Catherine
Related Content
- 4 years ago
- 2 years ago
- 13 years agoInactive User
- 2 years ago