1) Script Title: Tab Content Script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...tent/index.htm
Demo #1 Basic implementation
3) Describe problem:
I've got this javascript working well on a test page - it basically uses ajax to call external pages and insert them into a named div when a link is selected.
My problem is that the instructions say to put the following javascript code in the html to call the javascript into action. I don't want the javascript in my html and instead have tried putting it in an external js file. Only thing is that when I do this the javascript effect of pulling external pages as described above, stops working and I have no idea why.
Here is the script that I have put in an external js file (please note: the bits in bold are the bits that I did not put in my js file:
<script type="text/javascript">
var countries=new ddajaxtabs("tabs", "maincontent")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
My path to my js file is all correct in my head section.
Really baffled! Any help much appreciated!
Many thanks in advance,
Rachael



Reply With Quote

Bookmarks