javascript - jscrollpane content is shown 3 times -


using jscrollpane content duplicated 3 times. see mean go to: http://www.facesoflyme.com/view_pets/profile/pet_webpage.php?pet_id=1676 , view scrolling content under "casey's lyme disease journey"

here same page without using jscrollpanel. notice content shown 1 time. use url below view page works pet_webpage_11302010.php?pet_id=1676

if can figure out how fix appreciated.

it seems you're adding content there 3 times:

<script type="text/javascript" id="sourcecode">  $(function() { // initialise scrollpanes $('.scroll-pane').jscrollpane(); // add content #pane2 var pane2api = $('#pane2').data('jsp'); var originalcontent = pane2api.getcontentpane().html(); pane2api.getcontentpane().html(originalcontent + originalcontent + originalcontent); // reinitialise #pane2 scrollpane pane2api.reinitialise(); }); </script>  

this line:

pane2api.getcontentpane().html(originalcontent + originalcontent + originalcontent); 

the content there static html, thing need use this: $('.scroll-pane').jscrollpane(); of implementations

cheers

g.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -