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 7672425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:16:57+00:00 2026-05-31T16:16:57+00:00

var clickable = ApplyClickableLinkToClass($j(.rc_blueBtn)); setTimeout(clickable, 1000); But if I call it like this there

  • 0
var clickable = ApplyClickableLinkToClass($j(".rc_blueBtn"));
setTimeout(clickable, 1000);

But if I call it like this there is no script error pop up :

ApplyClickableLinkToClass($j(".rc_blueBtn"));

The method is as follows :

ApplyClickableLinkToClass = function(selectedElements) {
    // Go through each of the passed in selections and try to apply a link to them
    $.each(selectedElements, function() {
        var linkElement = $("a:first:not(.do-not-apply-clickable-link)", $(this));
        var link = linkElement.attr("href");
        if (!IsNullEmptyOrUndefined(link)) {
            $(this).click(function(firstLink) {
                var divToLink = firstLink;
                return function() {
                    $(divToLink).unbind('click');
                    if (divToLink.attr("target") != "_blank") {
                        window.location = link;
                        return false;
                    }
                };
            }(linkElement));
        }
    });
}

The error is just a js popup “An error has occured in the Script on this page”

  • 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-05-31T16:16:58+00:00Added an answer on May 31, 2026 at 4:16 pm

    Your clickable variable is set to the return value from calling the ApplyClickableLinkToClass function, which is undefined. So by passing clickable to setTimeout you’re passing undefined.

    Try this:

    setTimeout(function() {
       ApplyClickableLinkToClass($j(".rc_blueBtn"))
    }, 1000);
    
    // OR
    
    var clickable = function() {
       ApplyClickableLinkToClass($j(".rc_blueBtn"))
    }
    
    setTimeout(clicable, 1000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating html on runtime like this: var myVar = <div id='abc'>some clickable text</div>
jquery attaches a click method on even things that aren't typically clickable like a
i just got my first ever stack overflow when I ran this script: var
Given I have: $(a.clickable).livequery('click', (function (e) { var values = $(this).attr('id').split('_'); $('#' + values[3]).load($(this).attr('href'));
<script language=javascript type=text/javascript> $(document).ready(function() { $('#myDiv').click(function() { var checkBox = $(this).children(input[type='checkbox']); checkBox.attr('checked', !checkBox.attr('checked')) });
I am trying to create a clickable link in javascript var content = '<a
GoogleMap Markers are Not Clickable on the Mobile Devices (Touch Screens). But, ok on
I've successfully made the links clickable but how do i make them revert back
This is my ajax function: function ajax_call(call_method,data_to_send) { logger(function ajax_call. var data_to_send: ); logger(data_to_send);
I have a script which can make each table row clickable (as a 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.