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

  • Home
  • SEARCH
  • 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 7899573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:44:16+00:00 2026-06-03T08:44:16+00:00

I have a third party JQuery library that does this: var $this = $(this);

  • 0

I have a third party JQuery library that does this:

var $this = $(this);
...
var $items = $this.find('a');
...
$items.attr('rel', opts.group).fancybox(opts.fancybox);

The last line adds the rel attribute to links in my page and makes a fancybox pop up when I click on the link. I wanted to stop this from happening and noticed that by commenting out the last line I get a prompt to download the file that the link points to – this is exactly what I want. Problem is that I can’t just comment out this line since if I upgrade this library in the future then I will have problems with keeping the library updated with my changes. So I thought that if I remove the rel attributes inline that the fancy box will not pop up. I was able to remove the rel tags but for some reason the fancy box still pops up. Any idea what code I need to write to get rid of the fancy box and get the prompt for downloading the file?

Thanks,

Sachin

  • 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-03T08:44:18+00:00Added an answer on June 3, 2026 at 8:44 am

    Try to think about the chronological order in which the actions are executed.
    Perhaps the code that initiates fancybox comes after the code you use to remove it.
    Try executing your code only when the document is ready, thus making sure it is executed after any external library is loaded.
    for example:

    $(document).ready(function(){
        // Your code here //
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a third party library that internally constructs and uses the SqlConnection class.
I have a third party script that is including jquery (which causes things to
I have third-party C code that writes data to a file. I want to
I have third party sites that link to some images on my site. The
I have a third-party app that creates HTML-based reports that I need to display.
I have an third-party applet that requires JRE v1.5_12 to work correctly. THe user
I have a third-party product, a terminal emulator, which provides a DLL that can
I have a third-party library in my SVN repository and I'd like to associate
I am writing a third party JQuery widget. I wanted to have a Social
I have an image map that uses a third party script(mapper.netzgesta.de) to highlight the

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.