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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:37:03+00:00 2026-05-27T05:37:03+00:00

I have a FancyBox help link, on an ASP.Net aspx page, that is registered

  • 0

I have a FancyBox help link, on an ASP.Net aspx page, that is registered as such:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.js"></script>
    <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />

    <script type="text/javascript">
        $(document).ready(function() {

        $("#help").fancybox({
            'width': '90%',
            'height': '90%',
            'autoScale': true,
            'transitionIn': 'elastic',
            'transitionOut': 'none',
            'titleShow': false,
            'type': 'iframe'
        });

    });
  </script>

It works fine, but after 2 post backs (still works after 1) an exeption is thrown here (in fancybox.js) saying ‘wrap’ is not an object, when I click the help link:

    $.fancybox.center = function() {
    var view, align;

    if (busy) {
        return; 
    }

    align = arguments[0] === true ? 1 : 0;
    view = _get_viewport();

    if (!align && (wrap.width() > view[0] || wrap.height() > view[1])) {
        return; 
    }

After the third post back, an error is thrown before the page is completely loaded within the jquery.js file Microsoft JScript runtime error: Object doesn't support this property or method pointing no where in peticular.

Any ideas why post backs would be breaking fancybox?

  • 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-05-27T05:37:04+00:00Added an answer on May 27, 2026 at 5:37 am

    The solution is add “lazy_loader”.

    This will load your fancybox classes in each postback

    <script type="text/javascript">
        $(document).ready(function () {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(lazy_loader);
            lazy_loader();
        });
    
        function lazy_loader() {
            $("#help").fancybox({
                'width': '90%',
                'height': '90%',
                'autoScale': true,
                'transitionIn': 'elastic',
                'transitionOut': 'none',
                'titleShow': false,
                'type': 'iframe'
            });
        }
    </script>
    

    This should work just fine

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

Sidebar

Related Questions

I have the following: in header: <script type=text/JavaScript> $(document).ready(function() { $(.modal).fancybox({ // for modals
I'm using Fancybox 1.3.4 with ASP.NET MVC 3. I have following link : <a
I have this jQuery code: <script type=text/javascript> $(function() { $(.one-edition img).hover(function() { $(this).next(.editions-info-text).show(); },
I am using the FancyBox jQuery plugin (http://fancybox.net/) in my ASP.NET website and have
I have a page that will popup a fancybox using $('#showpopup').fancybox().trigger('click'); This may be
I have a fancybox modal window that loads a page of content (a form).
I have a fancybox for inline item that contains a vimeo video ebmedded by
On my website www.staygold-design.com I have a fancybox jquery script on a button under
I have problem with fancybox. I want to write a function that will run
I'm trying to add Fancybox to my ASP.NET MVC application but I'm having some

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.