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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:30:21+00:00 2026-06-02T19:30:21+00:00

I am trying to use the Fancy Box 2 plugin (fancyapps.com). All is well

  • 0

I am trying to use the Fancy Box 2 plugin (fancyapps.com).

All is well except I cannot figure out how to include a DOM element properly.

I am calling this after a form submit that is returning information via ajaxform and validation. documentation says to use the following for dom.

//DOM element:

$.fancybox( $("#inline"), {
    title : 'Custom Title'
});

Now if i create an id on the page in a div it doesn’t pull it. Also the div shows.

I tried using the other method (custom object)

$.fancybox({
    href: 'example.jpg',
    title : 'Custom Title'
});

and it does not seem to work with php files. I am trying to populate the lightbox with information from a php file but i get error loading content.

  • 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-02T19:30:22+00:00Added an answer on June 2, 2026 at 7:30 pm

    You should probably use ajax() in here.

    As I look into the FancyBox plugin, it does support ajax.

    $("#various3").fancybox({
        ajax: {
            type: "POST",
            data: 'mydata=test'
        }
    });​
    

    HTML

    <li><a id="various3" href="/data/login.php">Ajax - passing custom data</a></li>

    All of these where based on its demo’s source code. Demo page & http://fancybox.net/js/.

    UPDATE:

    I did a quick test using fancyBox version 2, pertaining your question.

    I achieve to pull the ajax contents:

    $(document).ready(function() {
        $('.fancybox').fancybox({
            title: 'Custom Title'
        });
    });​
    

    HTML

    <a class="fancybox fancybox.ajax" href="ajax.txt">Show content</a>
    <div id="content">
    </div>
    

    I’ve noticed that the important part in here is naming your class to class="fancybox fancybox.ajax".

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

Sidebar

Related Questions

I'm trying to use the Fancy Zomm jQuery plugin to show multiple images in
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I'm trying to use the jQuery cycle plugin to cycle round different quotes. I
Trying to use JQuery Easing plugin in my wordpress but its giving me following
I am trying to use the fancybox system described here: http://fearlessflyer.com/2011/01/create-an-awesome-photo-gallery-with-fancybox-and-timthumb/ I can get
I'm new to django and I'm trying to figure out how to create custom
I trying to use the some plugin for show images in popup window. I
javascript noob trying to figure something out. I saw a script located here: Using
I'm trying to use the FolderBrowserDialog from my WPF application - nothing fancy. I
I was trying to use fancy-buttons gem in my rails 3 app but now

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.