Results 1 to 3 of 3

Thread: Ajax Tab Content V.2.0 -about the language

  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Ajax Tab Content V.2.0 -about the language

    1) Script Title:
    Ajax Tab Content V.2.0

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tent/index.htm

    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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    <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>
    </ul>

  3. #3
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •