Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8058201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:16:48+00:00 2026-06-05T09:16:48+00:00

The problem: I have a link on a page that when I click it,

  • 0

The problem:
I have a link on a page that when I click it, nothing happens, but when I right click and open in a new window, I get the image that is on the link. I’ve used Firefox and Chrome. I’m doing web development on my localhost before deploying to our dev environment. It works in DEV, but not on local; it had worked previously on local. This doesn’t make sense to me.

The solution:
I did a checkout of the pages I had been working on from our svn repository. And that didn’t work.

Would I be right in thinking if the link opened in a new window then the problem is something else?

This Link:

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

Is clicked by this form:

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

Via these javascripts:

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;
}

I’m using fancybox to display the ‘notice’ to the user.

<!-- 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 -->

I get to the alert when that form is submitted.
This worked on my local previously.

Error Message from Firefox:
u is undefined
/ccdev2/js/fancybox/jquery.fancybox-1.3.1.pack.js
Line 17

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:16:49+00:00Added an answer on June 5, 2026 at 9:16 am

    I found this question after I Googled “U is undefined.”

    Jquery error "u is undefined"

    That fixed me up. I had declared fancybox in another php file that is included on this page. That was the one file I forgot to reset.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get a link that will both open in the current page,
I have an application that opens a new window on clicking a link. This
Similar to this question: link However I have already mastered that. My problem is
I'm pretty new to javascript and jquery, and have run into a problem that
I have some problem in CSS. Check this page . If you click Barcelona
I have a link on my ShowData.aspx page that I'm calling fancybox on. <a
I have a strange problem, I have a logout link that displays only if
I've seen a few similar posts to my problem, but none that have helped
I have a simple HTML page that looks like this: ...<div id="main"> <a href="#">Click
i have a problem using the Catch Clipboard Events code found on this link

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.