PDA

View Full Version : Ajax Tabs Content Script + wordpress



projecto
08-06-2012, 03:53 PM
1) Script Title: Ajax Tabs Content Script /Dynamically selecting a tab/ loading an external page

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm?countrytabs=1

3) Describe problem: The script is working when I use the demo page, but when I want to integrate it with wordpress. The external content of tab 2, 3 etc load into a separate new page instead of in the content container. I also used instance.loadajaxpage(pageurl) with one of the tabs but it doesn't load anything.


I put this in the header page:
<link rel="stylesheet" type="text/css" href="/../ajaxtab/ajaxtabs/ajaxtabs.css" />

<script type="text/javascript" src="/../ajaxtab/ajaxtabs/ajaxtabs.js">
/***********************************************
* Ajax Tabs Content script v2.2- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>

<script type="text/javascript">

var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()

</script>

and the rest of the code on a wordpress page.





*I also integrated the script "Dynamic Ajax Content" into wordpress for another purpose and that works fine*