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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:20:21+00:00 2026-05-24T21:20:21+00:00

I use jQuery UI dialog and Columnizer plugin to open up dialog modal window

  • 0

I use jQuery UI dialog and Columnizer plugin to open up dialog modal window and show tables in columns (if needed). All is working great, but.. only first time I click. When I click second time on the link (whitch must open dialog), columnizer is not working, but is called.
Where can be the problem?

$('#link_to_click').live('click', function(e) {
  e.preventDefault();

  // How much items per column
  var items_per_column = 15;

  var _dialog_id = '_modal_dialog_box_1';
  var $dialog = $('<div id="'+_dialog_id+'"></div>');

  /*
  * There is getting and parsing data from JSON
  * var data is parsed and created HTML
  */

  // This is wrapper what I will tell columnizer to columnize <div's> inside this wrapper 
  data = $('<div/>', {id: 'wrapper', 'class': 'table'}).html(data);


  $dialog.html(data).dialog({
    closeOnEscape: true,
    modal:true,
    title: $(this).attr('title'),
    resizable: false,
    width: 1000
  });

  // Columnizing (columns variable is calculated by items in JSON)
  if(columns > 1) {
    $('#wrapper').columnize({columns:columns,lastNeverTallest:true});
  }
  // Fixing bug that UI dialog is not centred after showing
  $('#'+_dialog_id).dialog("option", "position", "center");

  return false;
});

So when I wirst time click to all is good – dialog shows up, data is columnized and I am happy. Then I close dialog and click once more on the #link_to_click. Dialog is shown, but columnizer does not work…

Any ideas?

  • 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-24T21:20:22+00:00Added an answer on May 24, 2026 at 9:20 pm

    I found the bug and solution for that. I don’t know why but if dialog is two times called, it needs to remove dynamicaly created element. So I added one line BEFORE string

    var _dialog_id = '_modal_dialog_box_1';
    $('#'+_dialog_id).remove(); // Need to remove else on dublicate click will not load columnizer
    var $dialog = $('<div id="'+_dialog_id+'"></div>');
    

    Now all is working fine.

    Maybe someone can explain why is that?

    Thanks!

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

Sidebar

Related Questions

I'm wanting to use the jquery dialog to open a modal dialog, and in
The demos for the jquery ui dialog all use the flora theme. I wanted
We use jQuery modal dialog box to get confirmation from users before they delete
I'm trying to use the jQuery BlockUI Plugin to block a jQuery dialog while
I have project that shows few tables and try to use JQuery dialog boxes
I'm new to jQuery, and now I want to use jQuery-UI Dialog to show
I have a JSf form, I am tryin' to use jQuery Ui dialog plugin
I am attempting to use a JQuery dialog to popup a window upon let's
I am trying to use jquery dialog. My requirement is to open a dialog
I want to use jQuery UI dialog box to open a form dialog where

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.