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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:41:22+00:00 2026-05-26T08:41:22+00:00

I´ve been working with on a Asp.NET web app using jQuery to generate a

  • 0

I´ve been working with on a Asp.NET web app using jQuery to generate a sweet , flexible and fast UI. I´ve created the skeleton

<div id='title'>
    &nbsp;&nbsp;
    <h3 class='color-black h3'>
        Choose the career</h3>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
</div>
<div id='tabbedContent' class='tabbed_content'>
    <div id='tabs' class='tabs'>
        <div class='moving_bg'>
            &nbsp;
        </div>
    </div>
    <div id='contentID' class='slide_content'>
        <div id='tabsliderID' class='tabslider'>
        </div>
    </div>
</div>

Now onStart I will append some dynamically created DOM elements using jQuery. I do this by calling two js functions from the Page_Load method (ASP) that will do all the magic . Then I’ll need to init a couple of scripts (tabbedContent and iNettuts).
The thing is that those scripts need to be initialized only after the whole page is created -including the dynamically created content- so i CANT use $(document).ready and when I use $(window).load sometimes it works and sometimes it doesn’t.

I´ve been googling it for at least two weeks and still nothing. What should I do? Isn’t jQuery supposed to handle this issues? and if not .. is there any workaround?

ps. Tryin’ to make it work in IE7-8, Chrome 10 and FF 6

BTW, once I achieve this i´ll need to do some web services calls to get data from the db. Will this affect the behavior ? Should I expect more headaches?

  • 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-26T08:41:23+00:00Added an answer on May 26, 2026 at 8:41 am

    after a bit of research on your suggestions and a very very long night implementing Radus suggestion -which could be interpreted as flags for each element to be loaded- I started to ask myself : what if ready() has a flag? in that case I shouldn’t worry about the timing of the initialization. Well, turns out that this flag ,indeed, exists and it’s called holdReady().
    Basically, it prevents the ready() event to be launched until the flag is set to false.

    “The $.holdReady() method allows the caller to delay jQuery’s ready event. This advanced feature would typically be used by dynamic script loaders that want to load additional JavaScript such as jQuery plugins before allowing the ready event to occur, even though the DOM may be ready. This method must be called early in the document, such as in the immediately after the jQuery script tag. Calling this method after the ready event has already fired will have no effect.”[1]

    So, I did:

    $.holdReady(true); 
    //using ASPs page_load so it will be triggered everytime 
    //a postback happens -gonna need it for the AJAX requests i'm planning to do.
    //Then I create the dynamic content
    $.holdReady(false); //then I let the event fire
    
    
    $(document).ready(function(){
      //append the dynamic content
      iNettuts.init();
      tabbedContent.init();
    });
    

    And that’s it, problem solved. Hope this helps someone else, and thank you all.

    [1] http://api.jquery.com/jQuery.holdReady/

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

Sidebar

Related Questions

I am working on a web app using C# and asp.net I have been
We've been working with ASP.Net MVC2 based web app. We're using DataAnnotations for model
I have been working on an ASP.NET/C# web app for some time and its
I've been working a lot with asp.net web forms and one think that I
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I have been working on an ASP.Net web site and have been publishing to
I have been working on a JQuery script that posts JSON to my asp.net
I am working on an ASP.Net web application that must print dynamically created labels
So far I've been using ASP.NET MVC 3 BETA. Everything was working fine till
I've been working with ASP.NET MVC for the last few weeks, learning as I

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.