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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:22:56+00:00 2026-06-12T11:22:56+00:00

I have: $(.fancybox-href).click(function () { $.fancybox({ ‘title’: this.href, ‘width’: 800, ‘height’: 600, ‘href’: this.href,

  • 0

I have:

$(".fancybox-href").click(function () {
    $.fancybox({
        'title': this.href,
        'width': 800,
        'height': 600,
        'href': this.href,
        'type': 'iframe'
    });
    return false;
});

on my document ready section;

and i have popup function as:

function PopupOnClose(navigateObject, performCallbackTo) {
$.fancybox({
    'title': navigateObject.href,
    'width': 800,
    'height': 600,
    'href': navigateObject.href,
    'type': 'iframe',
    onClosed: function () {
        if (performCallbackTo != null) {
            eval(performCallbackTo + ".PerformCallback()");
        }
    }
});
return false;

}

and on my trigger link i have:

  <a id="my-popup" class="fancybox-href" onclick="PopupOnClose(this,'DxCallbackMyAspXCallBackPanel')" href="/My-PopUp-Page.aspx" ></a>

and my problem is maybe as you expected :

The Fancybox does not open the second time. when I click the first time fancybox shows up, but it does not fire up second time:

actually when I clicked second time, it waits and the fancybox modal window is appearing a very short time, but afterwards, the browser is redirecting to the page “My-PopUp-Page.aspx” directly.

help please.

thanks.

P.S: PerformCallback is a devexpress event and the problem that I specified is independent with it. That process is working well.

  • 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-12T11:22:57+00:00Added an answer on June 12, 2026 at 11:22 am

    The situation is done. Problem was initialize fancybox with an OnClose function and its done with following:

    $(".fancybox-href").click(function (navigateObject, performCallbackTo) {
    $.fancybox({
        'title': this.href,
        'width': 800,
        'height': 600,
        'href': this.href,
        'type': 'iframe',
    onClosed: function () {
        if (performCallbackTo != null) {
            eval(performCallbackTo + ".PerformCallback()");
        }
    });
    return false;});
    

    Thanx everybody..

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

Sidebar

Related Questions

I have this: <script> $(document).ready(function() { $(a#a_test).fancybox({ titleShow : false, width: 400, height: 120,
I have the following fancybox code: $('.fancybox').fancybox({ 'autoScale' : false, 'href' : $('.fancybox').attr('id'), 'type':'iframe',
i have opened fancy box with following code $(#tip5).fancybox({ 'width': 400, 'height': 370, 'enableEscapeButton'
I have the following: in header: <script type=text/JavaScript> $(document).ready(function() { $(.modal).fancybox({ // for modals
I have fancybox running to display blog posts in an iframe when the title
I have a page that will popup a fancybox using $('#showpopup').fancybox().trigger('click'); This may be
I have problem with fancybox. I want to write a function that will run
I have the following code which I use to match fancybox possible elements: $('a.grouped_elements').each(function(){
I have some content I want to show in iframe with fancybox. When I
I have this fancybox plugin wich is great, but I don't think there is

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.