Hi Detlef, Dialog titles have class ui-dialog-titlebar. So you can say
$(".ui-dialog-titlebar").addClass("unvisible") or simply $(".ui-dialog-titlebar").hide() **--** Steve On Jan 3, 7:19 pm, Detlef <det...@lindenthal.com> wrote: > Hello, > > I'd like to have a _dialog without a title bar_ , > actually I just want to read the word "loading" centered. > So I add some lines: > > CSS: > .centered { text-align: center } > .unvisible { visibility: hidden } > > HTML: > <div id=myDialog></div> > > JS: > showDialog("myDialog", " (no title bar wanted) ", "Loading ..."); > function showDialog(theDialog, theTitle, theText) { > $("#"+ theDialog).innerHTML = theText; > $("#"+ theDialog).dialog(); // important! > $("#"+ theDialog).dialog('option', 'title', theTitle); // (Why > isn't it possible to assign theText in a similar way?) > $("#"+ theDialog).dialog("open"); // important too! > $("#"+ theDialog).addClass("centered") // this makes theText > move to the middle of the dialog div > } > > In a similar way I would like to make the title bar invisible, but, > alas, unlike the complete dialog, the title bar has no ID like > id=myTitleBar, and so I cannot say > $("#myTitleBar").addClass("unvisible") > > What is the best way to have a dialog without a title bar? > > TIA, Detlef -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.