PDA

View Full Version : Ajax Tabs and page description



tirakle
12-22-2010, 05:14 PM
1) Script Title: Ajax Tab Content Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

3) Describe problem:

i have installed the script and it is working fine. but i have the problem, that the page description is getting messed up with the script text e.g.:

Modernine TV – Thai MCOT Channel 9 Stream 1 Stream 2 Stream 2 var countries=new ddajaxtabs(“countrytabs”, “countrydivcontainer”) countries.setpersist(true) countries.setselectedClassTarget(“link”) //”link” or “linkparent” countries.init() Modernine TV ist der Nachfolger des bisherigen thailändischen Fernsehsenders MCOT Channel 9. Den TV-Kanal gibt es seit 1955. Der Fernsehsender hat seinen Sitz in Bangkok und strahlt ein landesweites Vollprogramm aus.

http://boojoo.net/online-tv/tag/fernsehen/

what do i have to change so that the description doesn´t show the red part above ?

ddadmin
12-22-2010, 09:08 PM
The code in red needs to be wrapped inside the <script> tags. Please revisit the script page and look at the code of Step 2 again to see what the correct syntax is.

tirakle
12-23-2010, 06:35 AM
I´m not sure if I understand you right. Do you mean step 3 of the script ?

In my posting I use this syntax:

<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>

That should be correct. Isn´t it ?

The page content in the posting itself is displayed right e.g.:

http://boojoo.net/online-tv/thailand-live-tv/mcot-modernine-tv/

But if you look at the meta description it is displayed wrong. The same thing is with the preview of the archive e.g.:

http://boojoo.net/online-tv/tag/fernsehen/

how could this be ?