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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:46:05+00:00 2026-06-04T17:46:05+00:00

As I currently understand them, jquery modals are rendered during page load and triggered

  • 0

As I currently understand them, jquery modals are rendered during page load and triggered by the user via a hidden= true to hidden=false value.

This is all fine and dandy and works nicely when modals are kept to a minimum per page. But, and here is my question, what if you have an entire list of modals that when you click on it pops up a modal of information to edit. Say for example, a grid of documents and you wish to click on a document and have a modal pop up to just edit the small document. Wouldn’t rendering all these documents during page load slow down user experience. Isn’t there a way to load and render that modal “on demand”.

Whats the standard practice for this type of behavior.

I know the rails way to is load a new page per document but I’m very curious to see how I can make this work.

I tagged the jQuery crowd also as this library is the one I’m most familiar with.

  • 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-04T17:46:06+00:00Added an answer on June 4, 2026 at 5:46 pm

    I do this a lot in my apps. This is the code for a feedback button in one of my apps.

    It creates the dialog, and when a button is pressed the dialog’s content is loaded dynamically.

    $(function () {
        var button= $("#FeedbackButton");
        if (button.length == 0)
            button= $("<div id='FeedbackButton'>Feedback</div>").hide().appendTo("body");
    
    
        var dialog = $("#FeedbackDialog");
        if (dialog.length == 0)
            dialog = $("<div id='FeedbackDialog'>Feedback</div>").hide().appendTo("body");
    
        button.click(function () {
            button.hide();
            dialog.load("_FeedbackDialog.htm");
            $(dialog).dialog({
                title: "Feedback",
                modal: true,
                width: 800,
                height: 300,
                close: function () {
                    $(button).show();
                }
            });
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I use page numbers in hashes with Ben's Alman jquery-hashchange plugin : $(document).ready(function(){
I'm currently working on a jQuery solution where I want to load images from
I am currently trying to understand the ray tracer developed by Kevin Beason (smallpt:
So I am currently using inline-block for my site. I understand it's still relatively
The question says it all. I understand that VC11 is currently only in beta,
I'm learning regex, and I can't understand the grouping in Java. Currently my regex
I am currently loading HTMl content via AJAX. I have code for things on
Currently I am writing a system for a user that on filling in a
I'm very new to iPhone programming, and I'm currently following tutos to understand the
I am currently studying Fiege-Fiat Shamir and am stuck on quadratic residues. I understand

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.