PDA

View Full Version : Tab Content Script (v 2.2) not working in IE8?



chas
12-13-2010, 04:33 AM
1) Script Title: Tab Content Script (v 2.2)

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem: wont work in IE8?

jscheuer1
12-13-2010, 05:06 AM
Please post a link to a page on your site that contains the problematic code so we can check it out.

chas
12-13-2010, 05:23 AM
you deleted my site yikes


http://kangaroocourtaustralia.x24hr.com

left of the minicalendar

jscheuer1
12-13-2010, 06:02 AM
I did that because I could see no Dynamic Drive script on that page.

And it doesn't appear to be working in any browser. What browser does it work in?

Anyways, I see the markup for the tabs now, way down near the bottom. And now that I've had more of a look around, I see the tabcontent.css file is linked to the page. There appears to be some kind of fancy way of linking in the script code, but no script credit:

Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

or init code, like from Step 2 on the demo page, ex:


<script type="text/javascript">

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

</script>

I'd suggest taking out everything you have and starting over. Follow the step by step instructions from the demo page. Once you get it working like that, then you can fgiure out how to use that fancy stuff with the script. Only this time leave the credit notice on the page and in the external script.

chas
12-13-2010, 12:53 PM
works perfect in firefox 3

minify is gonna remove comments from the script dunno how am gonna put it back.

jscheuer1
12-13-2010, 02:05 PM
works perfect in firefox 3

Not here. Perhaps you are looking at a local copy or have something cached or are accessing a local resource unavailable to folks viewing the page in Firefox from a computer other than your own.


minify is gonna remove comments from the script dunno how am gonna put it back.

If you can't figure that one out, I guess you either cannot use the script or cannot minify it. However, using minify shouldn't stop you from putting the script credit on the page. Also, after you minify the script, you could add the credit back in at the top.

Look at jQuery minified:

http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

It has the credit.

chas
12-13-2010, 02:32 PM
it minifies on the fly....so i have to acess the server cache to add it.

i empty cache and ff3 works perfect on desktop and laptop

ps. hmm, your right. it works when i log in

jscheuer1
12-13-2010, 02:58 PM
As long as the credit is on the page, example:


<script type='text/javascript' src='http://kangaroocourtaustralia.x24hr.com/cms/public/min/index.php?ipbv=31006&amp;charset=UTF-8&amp;f=extra/tabs/tabcontent.js,extra/highslide/highslide-full.js,extra/pagination/virtualpaginate.js,public/js/ipb.js,public/js/ips.quickpm.js,public/js/ips.hooks.js,public/js/ips.board.js,cache/lang_cache/1/ipb.lang.js' charset='UTF-8'>

/***********************************************
* Tab 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>

instead of:


<script type='text/javascript' src='http://kangaroocourtaustralia.x24hr.com/cms/public/min/index.php?ipbv=31006&amp;charset=UTF-8&amp;f=extra/tabs/tabcontent.js,extra/highslide/highslide-full.js,extra/pagination/virtualpaginate.js,public/js/ipb.js,public/js/ips.quickpm.js,public/js/ips.hooks.js,public/js/ips.board.js,cache/lang_cache/1/ipb.lang.js' charset='UTF-8'></script>

That would be acceptable. You could even put the credit here (addition highlighted) as an HTML comment:


<!-- script type="text/javascript" src="./extra/pagination/virtualpaginate.js" -->
<!-- script type="text/javascript" src="./extra/highslide/highslide-full.js" -->
<!-- script type="text/javascript" src="./extra/tabs/tabcontent.js" -->
<!-- /***********************************************
* Tab 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
***********************************************/ -->
<link rel="stylesheet" type="text/css" href="./extra/tabs/tabcontent.css" />

As for getting it to work, do you have a guest login I could use for testing purposes?