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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:09:03+00:00 2026-05-10T20:09:03+00:00

The demos for the jquery ui dialog all use the flora theme. I wanted

  • 0

The demos for the jquery ui dialog all use the ‘flora’ theme. I wanted a customized theme, so I used the themeroller to generate a css file. When I used it, everything seemed to be working fine, but later I found that I can’t control any input element contained in the dialog (i.e, can’t type into a text field, can’t check checkboxes). Further investigation revealed that this happens if I set the dialog attribute ‘modal’ to true. This doesn’t happen when I use the flora theme.

Here is the js file:

topMenu = {     init: function(){         $('#my_button').bind('click', function(){             $('#SERVICE03_DLG').dialog('open');             $('#something').focus();         });          $('#SERVICE03_DLG').dialog({              autoOpen: false,             modal: true,              resizable: false,             title: 'my title',             overlay: {                  opacity: 0.5,                  background: 'black'              },              buttons: {                  'OK': function() {                      alert('hi!');                 },                  'cancel': function() {                      $(this).dialog('close');                  }              },             close: function(){                 $('#something').val('');             }         });     } }  $(document).ready(topMenu.init); 

Here is the html that uses the flora theme:

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'> <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=Shift_JIS'> <title>sample</title> <script src='jquery-1.2.6.min.js' language='JavaScript'></script> <link rel='stylesheet' href='flora/flora.all.css' type='text/css'> <script src='jquery-ui-personalized-1.5.2.min.js' language='JavaScript'></script> <script src='TopMenu.js' language='JavaScript'></script> </head> <body>  <input type='button' value='click me!' id='my_button'> <div id='SERVICE03_DLG' class='flora'>please enter something<br><br> <label for='something'>somthing:</label>&nbsp;<input name='something' id='something' type='text' maxlength='20' size='24'> </div>  </body> </html> 

Here is the html that uses the downloaded themeroller theme:

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'> <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=Shift_JIS'> <title>sample</title> <script src='jquery-1.2.6.min.js' language='JavaScript'></script> <link rel='stylesheet' href='jquery-ui-themeroller.css' type='text/css'> <script src='jquery-ui-personalized-1.5.2.min.js' language='JavaScript'></script> <script src='TopMenu.js' language='JavaScript'></script> </head> <body>  <input type='button' value='click me!' id='my_button'> <div id='SERVICE03_DLG' class='ui-dialog'>please enter something<br><br> <label for='something'>somthing:</label>&nbsp;<input name='something' id='something' type='text' maxlength='20' size='24'> </div>  </body> </html> 

As you can see, only the referenced css file and class names are different. Anybody have a clue as to what could be wrong?

@David: I tried it, and it doesn’t seem to work (neither on FF or IE). I tried inline css:

style='z-index:5000' 

and I’ve also tried it referencing an external css file:

#SERVICE03_DLG{z-index:5000;} 

But neither of these work. Am I missing something in what you suggested?

Edit:
Solve by brostbeef!
Since I was originally using flora, I had mistakenly assumed that I have to specify a class attribute. Turns out, this is only true when you actually use the flora theme (as in the samples). If you use the customized theme, specifying a class attribute causes that strange behaviour.

  • 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. 2026-05-10T20:09:04+00:00Added an answer on May 10, 2026 at 8:09 pm

    I think it is because you have the classes different.
    <div id='SERVICE03_DLG' class='flora'> (flora)
    <div id='SERVICE03_DLG' class='ui-dialog'> (custom)

    Even with the flora theme, you would still use the ui-dialog class to define it as a dialog.

    I’ve done modals before and I’ve never even defined a class in the tag. jQueryUI should take care of that for you.

    Try getting rid of the class attribute or using the ‘ui-dialog’ class.

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

Sidebar

Related Questions

I use the the following code to show a dialog with jQuery UI: var
I'm toying with jQuery UI, and I like how this demo works: http://jqueryui.com/demos/dialog/#modal-message However,
You may have seen JavaScript sliders before: http://dev.jquery.com/view/tags/ui/1.5b2/demos/ui.slider.html What I'm envisioning is a circular
Anyone using WPF for real LOB applications? We have all seen the clever demos
Hello I am writing some jquery plugins, i read some tutorials finding all clear.
More jQuery Tools overlay fun... I have a yes/no jQT modal dialog set up
I jsut checked the sample of jQuery UI that opens a dialog, it's strange
I can't get a jQuery UI modal dialog it to work as in the
Trying to include ThickBox (from http://jquery.com/demo/thickbox/ ) in an ASP.NET application. Visual Studio is
I have seen the official demos on lwjgl.org but I would like to see

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.