<script language="javascript" & gt; The function of the get () { $.get (" server. Asp,} {action: list the function (data) { $(" # List "). The HTML (data); }) } The set m=setInterval (" the get () ", 1000);//1 seconds, request a </script>
Server. The asp
The Response. The Buffer=True The Response. ExpiresAbsolute=Now () - 1 The Response. The Expires=0 Response. CacheControl="no - cache" Response. AddHeader "Pragma", "No - Cache"
'your query SQL statements,
I debugging, didn't get the result, so write directly to the above code to do the following changes:
<script language="javascript" & gt; The get ();//added program calls The function of the get () { $.get (" BBS. Asp, "{action:" # List "}, function (data) {//the original List into "# List "$(" # List "). The HTML (data); }) } SetInterval (" the get () ", 5000);//5 seconds, request a </script>
Server. The asp code correctly,
Test can get proper result,
the new question is: under the page in IE man words appear garbled, no problem under the Google browser, (I now all the asp page encoding is GB2312), the diagram below:
IE Chinese characters appear garbled
Google browser under normal
On the Internet to find some methods, test not solve the problems one by one, Excuse me, how to solve?
CodePudding user response:
<% @ LANGUAGE="VBSCRIPT" CODEPAGE="936" % & gt; <% The Response. The Charset="gb2312" The Response. The CodePage="936" The Session. The CodePage="936" % & gt;
Head with the server. The asp
CodePudding user response:
Chinese garbled, change the page encoding to utf-8, don't know how to change the page ASP page code words to baidu, baidu on a lot of