Results 1 to 4 of 4

Thread: Dynamic Ajax content

  1. #1
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Dynamic Ajax content

    1) Script Title: Dynamic Ajax content

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

    3) Describe problem:
    I want to use Dynamic Ajax content in the other language not in English.(thai..etc..)

    How can i
    ...what should i do

  2. #2
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");

    can i use this code and where ?

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

    Default

    Well you can set the header type when making an Ajax request, if that's what you mean. For example, if you're making a POST request using Ajax, you would replace the line:

    Code:
    page_request.open('GET', url+bustcacheparameter, true)
    inside the script with something like:

    Code:
    page_request.open('POST', url+bustcacheparameter, true);
    page_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    page_request.setRequestHeader("Content-length", parameters.length);

  4. #4
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I would like somebody help me

    Please I need to know how change¡ng the code to spanish in Ajax contect Tab, because when I tried to use xml code in spanish it doesn't work. So I don't know where I can change this code to reproduce spanish text...

    I would like to know how, and where... please be explicit because, i am in that to much time

    thank you very much friends

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
  •