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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:53:12+00:00 2026-06-14T23:53:12+00:00

This particular topic has some answers on SO, but none of them solves my

  • 0

This particular topic has some answers on SO, but none of them solves my problem. I have no idea where to look here, although I suspect it’s something very simple.

  • When I try to open a url in a Fancybox manually (i.e. by ‘physically’ clicking a link) it works.
  • If I however try to open it on page load automatically (i.e. by faking clicking a link), it doesn’t work at all and gives me the error I mention in my title.

The HTML is simple:

<a href="http://www.mydomain.nl/url/to/whatever" class="fancybox hidden_link">test</a>

The Javascript I’m using to automatically click it, is pretty straightforward too:

$(document).ready(function() {              
    $(".hidden_link").fancybox().trigger("click");
});

The event goes off (a Fancybox opens), but it shows nothing more than the ‘content cannot be loaded’ message.
I see my own page in the Fancybox when I click the link manually.

What am I missing here?

  • 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-14T23:53:13+00:00Added an answer on June 14, 2026 at 11:53 pm

    Having this link :

    <a href="http://www.mydomain.nl/url/to/whatever" class="fancybox hidden_link">test</a>
    

    … this script :

    $(document).ready(function() {
        $(".fancybox").fancybox({
            type: "iframe",
            width : 380, // or whatever
            height: 280
        }).trigger("click");
    });​
    

    … should do the job for both, manually and programmatically.

    See JSFIDDLE

    Notice that I used type: "iframe" since the content is an external page. The same origin policy should be considered in any case.

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

Sidebar

Related Questions

i know this topic has been discussed here before but i still can't get
Apologize if this particular problem has been answered already (a search didn't turn anything
Hi I am relatively new to this topic so I have no idea if
I realise this is a big topic, but I'd appreciate some rough ideas on
This particular topic has always made me wonder is there a more efficient way
I know this topic has been approached several times before in various ways, but
Problem: a task with higher priority than this particular task is hogging the CPU
I know there are a lot of posts related to this particular error but
I know there are plenty of questions here already about this topic (I've read
Question related to HABTM has been posted in some good numbers on stackoverflow but

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.