if (Sys.ie)//如果是IE浏览器
{
alert("ie");
if(p=="p"){<%s = "p";%>}
else if(p="n"){<%s = "n";%>}
else alert("地址错误!");
document.forms[0].action="/OA/searchUser!searchUser.action?method="+p;
document.forms[0].submit();
}
if (Sys.firefox)//如果是火狐浏览器
{
if(p=="p"){<%s = "p";%>}
else if(p="n"){<%s = "n";%>}
else alert("地址错误!");
document.forms[0].action="/OA/searchUser!searchUser.action?method="+p;
document.forms[0].submit();
}<s:form name="f1" theme="simple"> 请输入查询条件:
<s:textfield name="condition"></s:textfield>
<input type="button" value="按部门查找" onclick="searchUser('p')" />
<input type="button" value="按用户信息查找" onclick="searchUser('n')" />
<a href="#" onclick="openWin('/OA/a_user/user_saveorupdate.jsp','addperson',600,200);">
<img src="/OA/images/addpic.gif" border=0 align=absMiddle hand"> </a>
</s:form>在火狐中运行正常,在IE中就只能运行一次第二次就出错<input type="button" value="按用户信息查找" onclick="searchUser('n')" />这行说没有此属性和方法
{
alert("ie");
if(p=="p"){<%s = "p";%>}
else if(p="n"){<%s = "n";%>}
else alert("地址错误!");
document.forms[0].action="/OA/searchUser!searchUser.action?method="+p;
document.forms[0].submit();
}
if (Sys.firefox)//如果是火狐浏览器
{
if(p=="p"){<%s = "p";%>}
else if(p="n"){<%s = "n";%>}
else alert("地址错误!");
document.forms[0].action="/OA/searchUser!searchUser.action?method="+p;
document.forms[0].submit();
}<s:form name="f1" theme="simple"> 请输入查询条件:
<s:textfield name="condition"></s:textfield>
<input type="button" value="按部门查找" onclick="searchUser('p')" />
<input type="button" value="按用户信息查找" onclick="searchUser('n')" />
<a href="#" onclick="openWin('/OA/a_user/user_saveorupdate.jsp','addperson',600,200);">
<img src="/OA/images/addpic.gif" border=0 align=absMiddle hand"> </a>
</s:form>在火狐中运行正常,在IE中就只能运行一次第二次就出错<input type="button" value="按用户信息查找" onclick="searchUser('n')" />这行说没有此属性和方法
解决方案 »
- 如何将流写到html中 (急)
- 各位仁兄有没有能讲清楚Collection、Collections、Map、List、也就是util包里面这些东西的资料?我看了好多书,花了好找时间反而是越看越
- 初学JAVA,一点肤浅的认识,不知对不对?
- 在windows平台里如何在cygwin 中调试java 程序
- 最新权限控制办法
- 谁有支持JSP的WEB编辑器!
- 刚开始接触struts,请教几个小问题
- servlet调用ejb一直出现的问题!
- 成立软件联盟的问题
- java中怎么让double输出为科学计数法表示
- 高手进,weblogic9下,应用服务删除后,java 进程还在跑?怎么结束?
- 请教 自学JAVA的书
然后 分别指定action 就不会出错了 真是郁闷不知道Why?