Tags:
Yahoo User Interface Library
How do I invoke/instantiate a YUI Dialog from a hyperlink (anchor element)?
The YUI examples show how a button can instantiate the dialog like this.
// Instantiate the Dialog YAHOO.example.container.dialog1 = new YAHOO.widget.Dialog("dialog1",
{ width : "30em",
fixedcenter : true,
visible : false,
usearia : false,
modal : true,
constraintoviewport : true,
buttons : [ { text:"Submit", handler:handleSubmit, isDefault:true },
{ text:"Cancel", handler:handleCancel } ],
effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25} });
I want a hyperlink to be registered with the Dialog and use it to invoke(show) the dialog.
Thanks in advance.
20081119-EE-VQP-46 - Hierarchy / EE_QW_2_20070628