How to Render Javascripts-Collects?

  •  11-17-2004, 1:56 AM

    How to Render Javascripts-Collects?

    A Nice WebEditor!

     
    When I use your Webeditor in multipleeditors mode,
     
    I found what the output include some Javascript code. samelike:
     

    <script language="javascript" type="text/javascript">
    <!--
     var g_state =  new Array(new _CState('Editor1','zh-CN','/ASP.NETv1.1/Uploads','/ASP.NETv1.1/CuteEditor_Files',100,80,80,5,4,'True','True','/ASP.NETv1.1/Uploads',100,'/ASP.NETv1.1/Uploads',100,'False','div','#efefef',640,640,'True','True','/ASP.NETv1.1/Uploads',100), new _CState('Editor2','zh-CN','/ASP.NETv1.1/Uploads','/ASP.NETv1.1/CuteEditor_Files',100,80,80,5,4,'True','True','/ASP.NETv1.1/Uploads',100,'/ASP.NETv1.1/Uploads',100,'False','div','#efefef',640,640,'True','True','/ASP.NETv1.1/Uploads',100));
      // -->
    </script>

       
        <script language="javascript">    
        var editing; 
        for (var i = 0; i < g_state.length; i ++)
         g_state[i].Load();
        var submit_data = document.getElementById('_ctl0').submit;
        document.getElementById('_ctl0').submit = function() {
         for (var i = 0; i < g_state.length; i ++)
          save(g_state[i].UniqueID);
         submit_data();
        }   
       </script>
     
    One webeditor output one "new _CState()"  , but how can I output one  "new _CState()"  in multiple editors When I design my control,just like above?
    thanks
     
View Complete Thread