当前页面: 开发资料首页 → JSP 专题 → ajax的问题,请高手指点啊!
ajax的问题,请高手指点啊!
摘要: ajax的问题,请高手指点啊!
function getPopedomGroupFunction(){
var content = convertFormDataToPostContent(window.document.popedomgroup);
var sendurl=new ActiveXObject("Microsoft.XMLHTTP");
sendurl.open("POST","<%=request.getContextPath()%>/systemEditPopedomGroupFunction.simic?method=getPopedomGroupFunction",false);
sendurl.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
sendurl.send(content);
insertHtml.innerHTML=sendurl.ResponseText;
<%
if(request.getAttribute("groupId")!=null){
str=request.getAttribute("groupId").toString();
}
System.out.println(str);
%>
var groupId ='<%=str%>'; //为什么我的str没有值?(在上面的输出都可以输出值,到这儿就没有值了.源代码上显视groupId='');
for(i=0;i
if(document.all("groupId").options[i].value==groupId){
document.all("groupId").options[i].selected=true;
}
}
}
var groupId ='<%=str%>';
应该是双引号吧!