普通网友 2011-07-13 03:26
浏览 26

Colorbox没有关闭ie并给出错误

I am using a colorbox to get value of a textbox. I have this function in the file:

jQuery(document).ready(function(){
        jQuery(".example5").colorbox({              
    onComplete:function(){ document.getElementById('question').value;}
    });
});

where question is the textbox id name.

Than i have php code which check who to send question to so if array is empty i just use exit to exit out of the code. Here is the code for that:

if($array != ""){$f_array = explode(",", $array);}
else
{
 echo 'You have no one to ask questions.';  
 exit;
}

This code is giving me two problems i cant figure out. One the colorbox that shows the message 'You have no one to ask questions.' I can close this is firefox but it does not close in IE. Second i get this error in firefox:

document.getElementById("question1") is null
[Break On This Error] onComplete:function(){ document.getElementById('question1').value;}

I been trying to figure this out but cant. I will really appreciate the help.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
    • ¥15 (标签-MATLAB|关键词-多址)
    • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
    • ¥500 52810做蓝牙接受端
    • ¥15 基于PLC的三轴机械手程序
    • ¥15 多址通信方式的抗噪声性能和系统容量对比
    • ¥15 winform的chart曲线生成时有凸起
    • ¥15 msix packaging tool打包问题
    • ¥15 finalshell节点的搭建代码和那个端口代码教程
    • ¥15 Centos / PETSc / PETGEM