dialog.html<!DOCTYPE html>
<html>
<head>
<title>Dialog from iframe</title>
<link rel="stylesheet" type="text/css" href="themes/cupertino/jquery-ui-1.8.custom.css">
<script type="text/javascript" src="scripts/jquery-1.4.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.custom.min.js"></script>
<script type="text/javascript">
$(function(){ $('#test').click(function(){
$('#testDialog').dialog('open');
});
$('<iframe iframeborder="0" scrolling="no" src="content.html" id="testDialog">').dialog({
autoOpen: false,
title: '个人中心',
buttons: {
关闭: function(){ $(this).dialog('close'); }
},
open: function(){
$(this).css('width','95%');
}
});
});
</script> <style>
</style>
</head> <body>
<a href="#" id="test">test</a>
</body>
</html>
content.html<html>
<head>
</head>
<body bgcolor="#E4F0F8">
<br>
<form action="111.html" method="post">
用户名:<input type="text" name="" value=""/><br><br>
密码:<input type="password" name="" value=""/><br>
<input type="button" value="提交"/>
</form> </body>
</html>Dialog中的表单提交时无反应,查了查,原来插件中本来就不支持直接提交表单,
请问大虾们修改什么地方才能让表单提交
<html>
<head>
<title>Dialog from iframe</title>
<link rel="stylesheet" type="text/css" href="themes/cupertino/jquery-ui-1.8.custom.css">
<script type="text/javascript" src="scripts/jquery-1.4.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.custom.min.js"></script>
<script type="text/javascript">
$(function(){ $('#test').click(function(){
$('#testDialog').dialog('open');
});
$('<iframe iframeborder="0" scrolling="no" src="content.html" id="testDialog">').dialog({
autoOpen: false,
title: '个人中心',
buttons: {
关闭: function(){ $(this).dialog('close'); }
},
open: function(){
$(this).css('width','95%');
}
});
});
</script> <style>
</style>
</head> <body>
<a href="#" id="test">test</a>
</body>
</html>
content.html<html>
<head>
</head>
<body bgcolor="#E4F0F8">
<br>
<form action="111.html" method="post">
用户名:<input type="text" name="" value=""/><br><br>
密码:<input type="password" name="" value=""/><br>
<input type="button" value="提交"/>
</form> </body>
</html>Dialog中的表单提交时无反应,查了查,原来插件中本来就不支持直接提交表单,
请问大虾们修改什么地方才能让表单提交
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货