Skip to main content
This forum is closed to new posts and responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

The client-side JS for the dialog

I think I got this from Mark Hughes' blog, not sure -- definitely not my doings.

/**

* Creates a dijit dialog box based on a div content
* @param id div identifier
*/

function dialog_create(id, title1) {

// first check if the Dialog is there so we don't create a duplicate
var dialogWidget = dijit.byId(id);
if( dialogWidget )
dialogWidget.destroyRecursive(true);

// create a new Dialog
dialogWidget = new dijit.Dialog(
{ title: title1, duration:600 },
dojo.byId(id));

// move the new Dialog inside the form tag
var dialog = dojo.byId(id);
dialog.parentNode.removeChild(dialog);

var form = document.forms[0];
form.appendChild(dialog);
dialogWidget.startup();

};


Feedback response number JKIN86WL5A created by ~Denise Zenfreetexjip on 06/30/2010

Stuck on dijit dialogs again... (~James Brewever... 25.Jun.10)
. . I'll waddle in .... (~Rebecca Brefoo... 25.Jun.10)
. . . . Thanks Judy... (~James Brewever... 29.Jun.10)
. . . . I must be missing something... (~James Brewever... 30.Jun.10)
. . . . . . Maybe a simple example might help .... (~Rebecca Brefoo... 30.Jun.10)
. . . . . . . . The client-side JS for the dialog (~Rebecca Brefoo... 30.Jun.10)
. . . . . . . . I'm still a no-go at this station..... (~James Brewever... 30.Jun.10)
. . . . . . . . . . Ach, I feel your pain ... (~Bella Elfreema... 30.Jun.10)
. . . . . . . . . . . . I'm game... (~James Brewever... 30.Jun.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS