PDA

View Full Version : Dynamic Ajax content



anue
01-25-2007, 08:51 AM
1) Script Title: Dynamic Ajax content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.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

anue
01-25-2007, 09:33 AM
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");

can i use this code and where ?

ddadmin
01-26-2007, 07:19 AM
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:


page_request.open('GET', url+bustcacheparameter, true)

inside the script with something like:


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

jesago
01-26-2007, 06:11 PM
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:) :D