IE 中没有 Jquery 厚框

标签 jquery thickbox

我有 jquery 厚盒子,它在单击某个链接时加载。

然后,如果我单击厚框窗体上的单选按钮,它将关闭厚框窗体,并打开另一个厚框窗体。

但是第二个厚框在 IE 中不存在。 它在 Mozilla 中工作

这是我的代码

<script type="text/javascript">


/* Display the search popup according to the radio button selection **/
function show_search (value)
{

    tb_remove();
    var url= 'url1'; 


    setTimeout("tb_show('Change Details','"+url+"');",1*500);
    return false;
}

 </script>

<form class="jNice" action="" method="post" onsubmit="javascript:return formCarSrch_validate(this);" id="hotel_search_popup">

                <h2>Search Hotels</h2>
                 <input name="category"  type="radio" value="F"  class="radioSearch"  onclick="return show_search(this.value);"/><label>Flight</label>

</form>

最佳答案

查看以下链接中的文档:

[JQuery 厚框][1]

[1]: http://jquery.com/demo/thickbox/

并使用以下代码:

<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="thickbox.js"></script>
<script type="text/javascript">
 function show_search (value)
  { 
   var url= 'http://www.google.com'; 
   tb_show('Change Details','"+url+"');   
   setTimeout("remove()",1*100);
   return false;
  }
  function remove()
  { 
    tb_remove();    
    alert("check");
   } 
 </script> 
</head> 
<body>
<form id="hotel_search_popup">
<h2>Search Hotels</h2>
<input name="category"  type="radio" value="F"  class="radioSearch"  onclick="return show_search(this.value);"/>
<label>Flight</label>
 </form>
 </body>
 </html>

关于IE 中没有 Jquery 厚框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6833348/

相关文章:

javascript - 弹出页面作为模态的解决方案

javascript - 在thickbox内提交表单

jquery - 更改 iframe 中的输入值,父输入发生变化

html - 如何阻止 Youtube 视频重叠 thickbox 框架?

javascript - Wordpress thickbox 元素中的 JQuery 使用

jquery - 使用 AJAX 放置时,Thickbox 不起作用

javascript - jQuery 2.1 触发器 extraParameters 不起作用

javascript - 自定义选择和选项元素

javascript - 当我单击菜单时,子菜单部分不可见?

javascript - 如何将 Ajax 响应作为可下载文件发送到 Web 浏览器客户端?