Ticket #6739: dialog2.patch

File dialog2.patch, 1.3 kB (added by guest, 8 months ago)

onclick or javascript: broken

  • tests/test_Dialog.html

     
    5959                        } 
    6060                        setTimeout(function(){thirdDlg.show();},"3000"); 
    6161                } 
     62 
     63                var invite; 
     64                dojo.addOnLoad(function() { 
     65                        invite = new dijit.Dialog({title: "TEST"}, dojo.byId('dialogTest')); 
     66                }); 
     67 
    6268        </script> 
    6369</head> 
    6470<body class="tundra"> 
     
    6672        <h1 class="testTitle">Dijit layout.Dialog tests</h1> 
    6773        <button dojoType="dijit.form.Button" onclick="dijit.byId('dialog1').show()">Show Dialog</button> | 
    6874 
     75        <button dojoType="dijit.form.Button" onclick="invite.show()">Show Dialog (OK)</button> | 
     76 
     77    <a href="javascript:invite.show()" style="font-weight:bold;">Open Dialog (NOT OK - IE6)</a> | 
     78 
     79    <a href="javascript:void(0)" onclick="invite.show()" style="font-weight:bold;">Open Dialog (NOT OK - IE6)</a> | 
     80 
     81 
    6982        <div dojoType="dijit.Dialog" id="dialog1" title="First Dialog" 
    7083                        onfocus="console.log('user focus handler')" 
    7184                        onblur="console.log('user blur handler')" 
     
    98111                </table> 
    99112        </div> 
    100113 
    101  
     114        <div id="dialogTest"></div> 
     115      
    102116        <button dojoType="dijit.form.Button" onclick="createDialog()" title="shows after 3 second delay, with blue background">Programatic Dialog (3 second delay)</button> | 
    103117 
    104118