要求实现的效果:用AJAX 中星星的评分控件,点击评分后,弹出confirm提示框,确定则记录到数据库里,取消则不执行操作。
我的代码: <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</cc1:ToolkitScriptManager>
<asp ......
if(xmlhttp.readyState==4 && xmlhttp.status==200){
var responseHtml=xmlhttp.responseText;
document.getElementById(that.div_id).innerHTML=responseHtml;//这里面加载了个id为test 值为aaaaa的div
test();//问题这里开始
}
function test(){
if(document.getElement ......
JScript code:
var url="Test.aspx?id=1"
xmlHttp.open("GET",url,false);
xmlHttp.onreadystatechange= function()
{
if (xmlHttp.readyState == 4)
{
alert(xmlHttp.responseText);
}
}
xmlHttp.setRequestHeader("Co ......
我使用了一个PopUpControl来代替DropDownList,里面项目比较多。通过PopUpControl中返回的值来从数据库取值绑定一个GridView。现在的问题是,无法在关闭PopUpControl之后刷新或者重新绑定Gridview,绑定后没反应。
请各位大侠帮忙,多谢!
另外,有没有可能在PopupControl中返回多个值?
忘了说了,可以再Popu ......
服务器端:
response.setContentType("application/json;charset=UTF-8");
response.setCharacterEncoding("UTF-8");
PrintWriter pw = response.getWriter();
pw.write(retJSONString);
前台页面:
xmlHttp.open("POST", BeanName);
xmlHttp.setReques ......
用prototype.js来使用ajax,但是页面在无操作一段时间后会造成ajax无法响应操作,主要发生在谷歌浏览器里。
其他浏览器都是正常的,求解答。
用prototype.js来使用ajax
--------------------------------------
不明白你的意思
无法响应操作,
说明路径不对,或者连不上服务器啦
服务器正常啊,在其 ......