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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:24:13+00:00 2026-06-01T20:24:13+00:00

In a website, I’m using jquery tools. In a lot of places, I’ve to

  • 0

In a website, I’m using jquery tools.

In a lot of places, I’ve to do the same action:

When I click on a link, I display a popup:

This is done easily by

$(".overlayTrigger[rel]").overlay({
    mask: {
        color: '#111',
        loadSpeed: 300,
        opacity: 0.9
    },

        closeOnClick: true
    }
);

But the problem is that I would like, in each case, call a javascript method which loads some data for my popup.

I know there is a parameter of the trigger that I can set:

onLoad: function() {
   //Call the method specified in data-load-method attribute
},

And my goal is to call my custom method in the onLoad: function(){} and the method has to be specified on the <a href> through something like an attribute:

<a href="#" class="overlayTrigger" rel="#MyPopupDiv" data-load-method="LoadPopupXYZData">Click here for the popup</a>

Is there any way to do that?

  • 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-01T20:24:14+00:00Added an answer on June 1, 2026 at 8:24 pm

    If i understand you correctly, you want to do something like this:

    onLoad: function() {
       var method = $(this).data('load-method');
       window[method]();
    },
    

    If not, please clarify.

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

Sidebar

Related Questions

my website in www.codtelevision.com/live Click the link. For some reason, the page expands, then
Website is: http://www.talons-guild.com/forums/ Please try to click the link on the left side that
My website at http://derek.genevievehoward.com/ will not display in Firefox, even though the HTML and
A website I've been working on will not match data using a PHP (preg_match)
Website test page: http://www.lantiis.com/indexold.html jsFiddle: http://jsfiddle.net/Guhb4/7/ I received help with the jQuery and it
my website http://whoisdomains.co.uk/ is using twitter bootstrap http://twitter.github.com/bootstrap/index.html I am attemptimg to use the
Website: http://tinyurl.com/2c5cxkc This website loads fine on Safari/Chrome/Firefox. A number of people are having
My website doesn't seem to display any element or content when viewed on IE
My website creates an email from an HTML template using MailDefinition and ending up
Website. This feels like a common problem, but it's a difficult one to Google!

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.