nkzhlee / artdialog

Automatically exported from code.google.com/p/artdialog
1 stars 1 forks source link

如果传入到artdialog 的id 包含submit, #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
但是移动到,artdialog 
的内容没有包含在 form 中
如何 提交表单?

请问:

Original issue reported on code.google.com by wuhao1...@gmail.com on 1 Apr 2012 at 9:21

GoogleCodeExporter commented 8 years ago
<div id="GetDelInfo" style="display: none" >
............
<input type="submit" name="delete" value="确定删除" class="submit"/>
</div>

Original comment by wuhao1...@gmail.com on 1 Apr 2012 at 9:25

GoogleCodeExporter commented 8 years ago
同问此问题  ,请斌哥 解答下

Original comment by jacky...@gmail.com on 3 Apr 2012 at 10:02

GoogleCodeExporter commented 8 years ago
也就是 content: document.getElementById('demoCode_content_DOM') 
这个方法。  元素中含有submit

Original comment by jacky...@gmail.com on 3 Apr 2012 at 10:04

GoogleCodeExporter commented 8 years ago
表单不是可以用 submit() 
方法提交的么?在对话框确定按钮写个回调即可

Original comment by 1987.tan...@gmail.com on 3 Apr 2012 at 10:11

GoogleCodeExporter commented 8 years ago
但是,再复杂点:
demoCode_content_DOM  这个id 里面也有 原form的表单元素。

用 submit()只能提交 原formd的表单元素 , 被artdialog 
剪切出来的表单元素 
,无法用submit()一起提交到页面中去。
例如:
<id=demoCode_content_DOM>
   <input name="delete**" type="checkbox" id="delete**" value="yes" checked="checked"/>
<>
name="delete**" 的值该怎么办呢?感谢斌哥的解答!

Original comment by wuhao1...@gmail.com on 5 Apr 2012 at 7:08