View Full Version : Ajax Tab Content V.2.0 -about the language

02-06-2008, 05:50 PM
1) Script Title:
Ajax Tab Content V.2.0

2) Script URL (on DD):

3) Describe problem:
Hello, I've trying to use this script in my assignment. But there is a problem about the language setting. When I use the Demo #2 script, I found out that the external pages which including Chinese can not display correctly.(It may look like��q�a�Ϥ��e��m���� , actually they are Chinese characters, but it display like what you see here)But when the pages which including just English can display correctly. How can I solve this problem?

ps. I've tried to add <meta http-equiv="Content-Type" content="text/html; charset=big 5" /> before </head> but it still not work...

Thank you for your solutions

02-06-2008, 06:00 PM
Content fetched via Ajax tend to not handle foreign characters within the content well. The easiest way is just to use the "IFRAME" option for that particular tab, so the content is displayed within an iframe instead:

<ul id="countrytabs" class="shadetabs">
<li><a href="#" class="selected" rel="#default">Tab 1</a></li>
<li><a href="external2.htm" rel="countrycontainer">Tab 2</a></li>
<li><a href="external3.htm" rel="countrycontainer">Tab 3</a></li>
<li><a href="external4.htm" rel="#iframe">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>

02-07-2008, 06:21 AM
Thank you !!

I have tried the "iframe", but still want to know are there any solution can help me. Now I know that the problem is about the "ajax way". I think that it may not easy to modify the script for the language problem. Therefore I will use the "iframe".

And this site is very good!! I love here. Because one of my interests is web design and I major in computer science at university. This site help me a lot!!
At last, thank you again.