BOBLOG的HTMLAREA不能复制问题5

再次找了一些资料,看来应该是 onsubmit不执行的问题,用BAIDU和GOOGLE搜索了一下ONSUBMIT不执行的问题,但是发现和我的现象好像又不一样。

因为我把那段代码单独弄出来是可以执行的?

[quote]

1.为什么我的<html:form 不响应JAVASCRIPT  Copy to clipboard
Posted by: chestin
Posted on: 2004-05-17 13:00

在页面中:
<html:form action="/impOpenTypeEdit" target="_self" onsubmit="return remove(this);">
<input type="hidden" name="method" value="remove">
<logic:iterate id="openType" name="dtos" >
<tr width="70%">
<td width="20%"><input type="checkbox" name="id" value="<bean:write name="openType" property="id"/>" onClick="javascript:showInfo();"><bean:write name="openType" property="id"/>  </td>
<td width="30%"><bean:write name="openType" property="typeNo"/>  </td>
<td width="50%"><bean:write name="openType" property="manageType"/></td>
</tr>
</logic:iterate>
<tr>
  <td colspan="3"> <input type="submit" name="remove" value="删除开证形式" ></td>
</tr>

</html:form>
数据显示完整,但是JAVASCRIPT好像没有被调用 

——————————————————————————–
2.Re:为什么我的<html:form 不响应JAVASCRIPT [Re: chestin] Copy to clipboard
Posted by: glistar
Posted on: 2004-05-17 16:42

你是指 remove 方法吗?
remove 方法和属性remove名称相同!
编译器首先检测属性,所以方法不执行! 

——————————————————————————–
3.Re:为什么我的<html:form 不响应JAVASCRIPT [Re: chestin] Copy to clipboard
Posted by: yushuhui
Posted on: 2004-05-22 11:35

限执行action操作,不执行Javascript代码,我也碰到这个问题。 

——————————————————————————–
4.Re:为什么我的<html:form 不响应JAVASCRIPT [Re: chestin] Copy to clipboard
Posted by: jigsaw
Posted on: 2004-06-07 13:29

给button加onclick() 

——————————————————————————–
5.Re:为什么我的<html:form 不响应JAVASCRIPT [Re: chestin] Copy to clipboard
Posted by: sunzisun
Posted on: 2004-06-29 21:24

struts-config.xml中

<action-mappings>
<action path="/impOpenTypeEdit" validate="true"/>
</action-mappings> 

——————————————————————————–
6.Re:为什么我的<html:form 不响应JAVASCRIPT [Re: chestin] Copy to clipboard
Posted by: icemen
Posted on: 2004-07-25 03:51

不明白一楼的意思? 

——————————————————————————–
7.Re:为什么我的<html:form 不响应JAVASCRIPT [Re: chestin] Copy to clipboard
Posted by: dust_fox
Posted on: 2004-08-03 15:39

shi a 

——————————————————————————–
8.Re:为什么我的<html:form 不响应JAVASCRIPT [Re: chestin] Copy to clipboard
Posted by: floater
Posted on: 2004-08-03 22:12

I bet it\’s a javascript error. 

[/quote]

限执行action操作,不执行Javascript代码,我也碰到这个问题。??

历史博文

标签:, , , ,
七月 24, 2005 at 10:00 上午 by yippee 1,003 次
Category: Dev
Tags: , , , ,