死链接:链接在新窗口中打开,但不在页面上打开


Dead Link: Link opens in new window, but not on the page

问题:我在页面上有一个链接,当我单击它时,没有任何反应,但是当我右键单击并在新窗口中打开时,我得到了链接上的图像。 我用过Firefox和Chrome。 在部署到我们的开发环境之前,我正在本地主机上进行 Web 开发。 它适用于 DEV,但不适用于本地;它以前曾在本地工作过。 这对我来说没有意义。

解决方案:我从我们的 svn 存储库中签出了我一直在处理的页面。 这没有用。

如果链接在新窗口中打开,那么问题是别的,我会想对吗?

此链接:

<a type="hidden" class="highlight" id="hidden_link" href="../images/developer_notice.png"></a>

通过以下表单单击:

<form action="" id="search-form" name="search-form" method="get" onsubmit="return validateSearchForm();">

通过这些JavaScript:

function validateSearchForm(){
 if(!validateAccountStanding()){
    return false;
 }
 return true;
}
function validateAccountStanding(){
var accountStanding = $("#account_standing").val();
//check account standing, if it's "Not Good," alert user
//otherwise, keep going, business as usual.
if(accountStanding == "Not Good"){
    document.getElementById('hidden_link').click();
alert("!");
    return false;
}
return true;
}

我正在使用花式框向用户显示"通知"。

<!-- Enable fancy box -->
<link rel="stylesheet" href="../fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
<link href="../js/fancybox/jquery.fancybox-1.3.1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
    //$.noConflict();
    $("a.highlight").fancybox(); 
});
</script>
<!-- Enable fancy box /end -->

提交该表格时,我会收到警报。这以前在我的本地工作。

来自火狐的错误消息:u 未定义/ccdev2/js/fancybox/jquery.fancybox-1.3.1.pack.js17号线

我在谷歌上搜索"U is undefined"后发现了这个问题。

Jquery 错误"u is undefined"

这让我修好了。 我在此页面上包含的另一个 php 文件中声明了 fancybox。 那是我忘记重置的一个文件。