Problem with double click on Custom Button

  •  11-22-2007, 1:16 AM

    Problem with double click on Custom Button

    Hi
    When I click on it, it do well. But when I double click on it, an error message is displayed.
    " Command Test is Not Supported or Not Implemented"
    Plz see my javascript
     
    function Testing(){
       for(i = 0 ; i <= 10000; i++)
       { 
       
           var editor1 = document.getElementById('abc');
       }
    }
     
    And the code behind
     
    ctrlTest = ViewEditor.CreateCommandButton("Testing", "test.gif", "Testing")
    ctrlTest.Attributes("onclick") = "Testing();"
    ViewEditor.InsertToolControl(1, "Testing", ctrlTest )
     
     
View Complete Thread