Using CuteEditor as an file manager doesn't work in Firefox

Last post 05-11-2007, 10:21 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-11-2007, 4:42 AM 29542

    Using CuteEditor as an file manager doesn't work in Firefox

    HELP
     
    I use the following code to use the "InsertDocument" method as a file manager. Works perfectly fine in IE but in Firefox it doesn't write the value into the text box unless i put a something like a windows alert in front of the value set. With the alert not commented out this works in Firefox (as long as you don't close the alert before you pick a file). With it commented out it doesn't write the value to the eventPDF textbox.
     
    function callInsertPDF() 

       var editor = obj_editorPDF;
       editor.FocusDocument(); 
       _Format(editor,"New"); 
       _Format(editor,"InsertDocument"); 
       InputURL();
       document.getElementById("eventPDF").focus();
       function InputURL()
       {
          var editdoc = editor._frame.contentWindow.document;
          var imgs = editdoc.getElementsByTagName("a");
          if(imgs.length>0) 
          {  
          //alert("File Selected");
             document.getElementById("eventPDF").value = imgs[imgs.length-1].href;
          } 
          else
          {
             setTimeout(InputURL,500);
          } 
       }  
    }
  •  05-11-2007, 10:21 AM 29544 in reply to 29542

    Re: Using CuteEditor as an file manager doesn't work in Firefox

    GMAC,
     
    Which version are you using?
     
    If you are using version 6.0, Please check this example:

     
    The source code of this example can be found in the download package.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML