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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:31:11+00:00 2026-05-26T22:31:11+00:00

I am using a jQuery modal dialog in my ruby on rails application. Here’s

  • 0

I am using a jQuery modal dialog in my ruby on rails application. Here’s my code:

        var html = '';
        html += '<div id="dialog-form">';
        html += 'This is a test.';
        html += '<button id="form-close" class="close-button" type="button" onclick="$(\'#dialog-form\').dialog(\'close\');">Close</button>';
        html += '</div>';

        var dialog_form = $(html).dialog({
            autoOpen: false,
            width: 600,
            height: 640,
            modal: true,
            open: function() {
                $(".ui-dialog-titlebar").hide();
            },
            close: function(event, ui) {
                $('#dialog-form').remove();
            }
        });
        dialog_form.dialog('open');

I used the same code in another application, and it works perfectly.

In my current application, instead of rendering a modal dialog, this script renders a transparent dialog window. The text and button are rendered properly. But, the dialog is transparent, and not modal.

I have made sure that I have included jquery.js and jquery-ui.js.

I can’t figure out what’s wrong with what I am doing. Please help.

Thanks.

  • 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-26T22:31:12+00:00Added an answer on May 26, 2026 at 10:31 pm

    add reference of jquery css, js files. also check that the class name of the dialog is correct. you will need to add more divs in your main div (the exact code is in the index page of jquery code from jqueryui.com)

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

Sidebar

Related Questions

I have a div tag in my modal dialog built using JQuery like this:
I am having a Ruby and Rails application. I am loading a form using
We are developing an application in ASP.Net MVC 3 using jQuery UI Dialog. This
I'm using the jQuery UI modal dialog, and populating it with some form fields.
using the jquery ui modal dialog , the background shades grey (i assuming this
I'm using a jQuery modal dialog in my ASP .NET MVC 3 application. It
I am displaying a modal dialog using jQuery. This dialog has a textarea control
I'm using jquery for modal dialogs. I want to open model dialog from one
I m havin a jqueryui modal form. and i m using jquery cluetip tool
I'm using $.blockUI with jQuery to show a modal dialogue. The HTML looks like:

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.