Advertisement

11.25.2008 at 03:54AM PST, ID: 23933609 | Points: 500
[x]
Attachment Details

How do I invoke/instantiate a YUI Dialog from a hyperlink (anchor element)?

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.
 
Expert Comment by obareey:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
Author Comment by madanrevoor:

All comments and solutions are available to Premium Service Members only. Start your 7-day free trial to view the solution to this question.

Already a member? Login to view this solution.

 
 
20081119-EE-VQP-46 - Hierarchy / EE_QW_2_20070628