Re: Document selection does not work in Firefox 2.x

  •  06-19-2009, 8:33 AM

    Re: Document selection does not work in Firefox 2.x

    I am not sure...yes, looks like your end it works. I will see if its something to do with the OS or service pack upgrade. Anyway here is the code from the sample page....to see if there is anything wrong in this....
     
    <HTML>
     <HEAD>
      <title>ASP and ASP.NET WYSIWYG Editor - Use CuteEditor as a document selector</title>
     </HEAD>
     <body>
      <form name="ctl00" method="post" action="use-CuteEditor-as-document-selector.aspx" id="ctl00">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTA0NDU3MzgwMw9kFgJmD2QWAgIFDxYEZGRkZWRkGgwvNCPZrqC1gBi0g4h+fO1QFyg=" />
    </div>

       <table border="0" cellpadding="0" cellspacing="0">
        <tr>
         <td width="10" nowrap></td>
         <td width="20" nowrap></td>
         <td valign="top" width="760">
          <b>Use CuteEditor as a document selector</b>
          <hr>
          This example demonstrates how to use CuteEditor as a document selector.
          <br>
          <br>
          <input name="docFld" type="text" id="docFld" style="width:300px;" />
          <input name="Change" type="button" id="Change" value="Pick a file" onclick="callInsertImage()" />  
          
          <div>
           

     <!-- CuteEditor Editor1 Begin -->

    <textarea name="Editor1" id="Editor1" rows="14" cols="50" class="CuteEditorTextArea" style="DISPLAY: none; WIDTH: 100%; HEIGHT: 100%"> </textarea><input type='hidden' name='Editor1$ClientState' value=''/><input type='hidden' name='Editor1$PostBackHandler'/><link rel="stylesheet" href="http://cutesoft.net/CuteSoft_Client/CuteEditor/Load.ashx?type=themecss&amp;file=style.css&amp;theme=Office2003&amp;EditorID=CE_Editor1_ID" />
    <table cellspacing="0" cellpadding="0" _IsCuteEditor="True" id="CE_Editor1_ID" style="background-color:White;border-color:White;border-width:1px;border-style:Solid;height:1px;width:1px;">
     <tr><td class='CuteEditorToolBarContainer' unselectable='on' valign='top'><div id="CE_Editor1_ID_ToolBar" style="DISPLAY:none;">

     </div><div id="CE_Editor1_ID_CodeViewToolBar" style="DISPLAY:none;">

     </div></td></tr><tr><td class='CuteEditorFrameContainer' style='height:100%'><iframe id="CE_Editor1_ID_Frame" src="http://cutesoft.net/CuteSoft_Client/CuteEditor/Template.aspx?Referrer=http%3a%2f%2fserver2003%2feditordemo%2fhowto%2fuse-CuteEditor-as-document-selector%2fuse-CuteEditor-as-document-selector.aspx" FrameBorder="0" title="EditArea" class="CuteEditorFrame" style="background-color:White;border-color:#DDDDDD;border-width:1px;border-style:Solid;height:100%;width:100%;">
      <noframes>Your browser doesn't support frames.</noframes>
     </iframe></td></tr>
    </table><script src="http://cutesoft.net/CuteSoft_Client/CuteEditor/Load.ashx?type=scripts&amp;file=IE_Loader">

    </script><img alt="Load" src="http://cutesoft.net/CuteSoft_Client/CuteEditor/images/1x1.gif?633677296057031250" onload="window.CuteEditorInitialize('CE_Editor1_ID',{'_ClientID':'CE_Editor1_ID','_UniqueID':'Editor1','_FrameID':'CE_Editor1_ID_Frame','_ToolBarID':'CE_Editor1_ID_ToolBar','_CodeViewToolBarID':'CE_Editor1_ID_CodeViewToolBar','_HiddenID':'Editor1','_StateID':'Editor1$ClientState','_PostBackHandlerID':'Editor1$PostBackHandler','_TemplateUrl':'/CuteSoft_Client/CuteEditor/Template.aspx?Referrer=http%3a%2f%2fserver2003%2feditordemo%2fhowto%2fuse-CuteEditor-as-document-selector%2fuse-CuteEditor-as-document-selector.aspx','Culture':'en-US','Theme':'Office2003','ResourceDir':'/CuteSoft_Client/CuteEditor','ActiveTab':'Edit','ContextMenuMode':'None','MaxHTMLLength':'0','MaxTextLength':'0','TabSpaces':'3','ResizeStep':'100','BreakElement':'Div','URLType':'Default','EmptyAlternateText':'ForceAdd','ServerName':'server2003','RenderRichDropDown':'True','EditorOnPaste':'ConfirmWord','ResizeMode':'ResizeCorner','DNNArg':'','PostBackScript':'__doPostBack(\x27Editor1$PostBackHandler\x27,\x27\x27)','HelpPath':'/CuteSoft_Client/CuteEditor/Help/default.htm','DOCTYPE':'','BaseHref':'','EditorBodyStyle':'','EditorBodyId':'','EditorBodyClass':'','EditorSetting':'!3wEWAgUFZW4tdXMFAyRhMUtsNqUQptR5rrwWnzP2lgKjVE4Z','ToggleBorder':'1','EnableBrowserContextMenu':'1','ConvertHTMLTagstoLowercase':'1','EnableAntiSpamEmailEncoder':'1','EnableStripScriptTags':'1','AllowPasteHtml':'1','UseHTMLEntities':'1','EncodeHiddenValue':'1','EnableObjectResizing':'1','MaintainAspectRatioWhenDraggingImage':'1'})" style="display:none;" />

     <!-- CuteEditor Editor1 End c1 ms421.875-->

    <br>
          </div>
         </td>
        </tr>
       </table>
      
    <div>

     <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
     <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
     <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAwKZlOa8DALJoebuBgLb1uq/AZYfmF/tUacMfi/XWzQ12yyo7lJs" />
    </div>
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['ctl00'];
    if (!theForm) {
        theForm = document.ctl00;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>

    </form>
     
    <Script Language="javascript">
        function callInsertImage() 
        { 
       var editor1 = document.getElementById('CE_Editor1_ID');
                editor1.FocusDocument(); 
                var editdoc = editor1.GetDocument(); 
                editor1.ExecCommand('new');
                editor1.ExecCommand('insertdocument');
                InputURL();
                document.getElementById("docFld").focus();
        }   
       
        function InputURL()
        {
      var editor1 = document.getElementById('CE_Editor1_ID');
            var editdoc = editor1.GetDocument(); 
            var links = editdoc.getElementsByTagName("a");      
            if(links.length>0&&links[links.length-1].href!="") 
      { document.getElementById("docFld").value = links[links.length-1].href;      
      } 
      else
      {
       setTimeout(InputURL,500);
      }  
        }      
    </script>

     </body>
    </HTML>

     
     

     
     
View Complete Thread