I have tabs based on jquery tools that work great and on each tab I load pages using ajax. One of the pages has tools from the other side, which requires the following code:
$(function() { $('.scroll-pane').jScrollPane({showArrows: true}); });
I have no doubt where to place this code (on the loaded ajax page). According to the guys from Flowplayer:
"The script tag should be placed under HTML elements that are not inside the document.ready () event, because this event does not fire for pages loaded using AJAX."
Does this mean encapsulating above in tags <script></script>and placing after tag </html>? This is beyond the scope of the entire document, so it does not seem to be correct ...
Help someone ... where should I put my initialization code in an ajax document?
thank
source
share