Turn Off Auto-Filling URL textbox when Uploading Files?

Last post 03-15-2010, 11:40 AM by Adam. 5 replies.
Sort Posts: Previous Next
  •  03-11-2010, 1:03 PM 59337

    Turn Off Auto-Filling URL textbox when Uploading Files?

    Is there a way to disable the auto filling of the URL text box when a file is uploaded?  I am having an issue with it not populating with the correct path.  In the example below I uploaded a puzzle1.swf and it populates the URL field with with an incomplete path. 
     

     
  •  03-11-2010, 8:55 PM 59346 in reply to 59337

    Re: Turn Off Auto-Filling URL textbox when Uploading Files?

    Hi jamesk,
     
    you can hide the entire Url part.
     
    Open file "CuteSoft_Client\CuteEditor\Dialogs\InsertDocument.aspx"
     
    Find section below
    1. <tr>   
    2.                                                 <td valign="middle">   
    3.                                                     [[Url]]:</td>   
    4.                                                 <td>   
    5.                                                     <input id="TargetUrl" onchange="do_preview()" onpropertychange="do_preview()" type="text"  
    6.                                                         size="40" name="TargetUrl1" runat="server" style="visibility: hidden" />   
    7.                                                 </td>   
    8.                                             </tr>  
    Change to
     
    1. <tr style="visibility: hidden">   
    2.                                                 <td valign="middle">   
    3.                                                     [[Url]]:</td>   
    4.                                                 <td>   
    5.                                                     <input id="TargetUrl" onchange="do_preview()" onpropertychange="do_preview()" type="text"  
    6.                                                         size="40" name="TargetUrl1" runat="server" style="visibility: hidden" />   
    7.                                                 </td>   
    8.                                             </tr>  

    Regards,
     
    Ken
  •  03-12-2010, 8:09 AM 59353 in reply to 59346

    Re: Turn Off Auto-Filling URL textbox when Uploading Files?

    Ken,
     
      I can't simply hide the field because I use the control elsewhere in my application and this would causes issues.  Is there no way to disable the auto population of this TargetUrl field?  My main issue is that it is populating with an invalid url.  Would setting BaseHref resolve this?
  •  03-12-2010, 10:14 AM 59358 in reply to 59353

    Re: Turn Off Auto-Filling URL textbox when Uploading Files?

    jamesk:
    Ken,
     
      I can't simply hide the field because I use the control elsewhere in my application and this would causes issues.  Is there no way to disable the auto population of this TargetUrl field?  My main issue is that it is populating with an invalid url.  Would setting BaseHref resolve this?
     
    It should not populate the URL with the domain name.
     
    Which version are you using?

    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

  •  03-12-2010, 10:19 AM 59360 in reply to 59358

    Re: Turn Off Auto-Filling URL textbox when Uploading Files?

    Adam,
     
       I have the latest version (6.6).  Is there a property I can set to define what that field is populated with?  Do I have access to the code that populates that field?  Ideally, I would just like to stop it from populating the filed when a file is uploaded and instead force the user to click on the uploaded file (which will result in the proper path).
  •  03-15-2010, 11:40 AM 59398 in reply to 59360

    Re: Turn Off Auto-Filling URL textbox when Uploading Files?

    >>  I have the latest version (6.6).

    We cannot reproduce this issue. Which browser are you using?

    Can you try the following example?
     
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <%@ Page language="c#"%>
    <html>
     <head>
     </head>
     <body>
      <form id="Form1" method="post" runat="server">
       <CE:EDITOR id="Editor1" Autoconfigure="Simple" runat="server"></CE:EDITOR>
      </form>
     </body>
    </html>
    >>Is there a property I can set to define what that field is populated with?
     
    It automatically populate the TargetUrl after uploading from the server side. You cannot modify it.

     
     

    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