This is the code I use to create the dialog:
var message = document.createElement("div");
$("body").append(message);
var dialog = $
(message).attr("title",currentAlarm.shortDesc).text(currentAlarm.longDesc).dialog({
modal: true,
resizable: true,
minWidth: 300,
overlay: {
opacity: 0.5,
background: "black"
},
close: dialogClosed,
toMark: selected
});
The dialog must appear when a user clicks on a list showing the
description of the selected element. That description is
currentAlarm.longDesc and it's a long text in a single line.
Since the dialog destroys the div it uses, I have to create a new div
everytime I have to show a description but as you can see, that div
doesn't have any properties.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---