problem: extra / added to some links

Last post 05-28-2009, 7:39 AM by hothead. 2 replies.
Sort Posts: Previous Next
  •  05-26-2009, 7:57 AM 52500

    problem: extra / added to some links

    Hello, we just bought cuteEditor last week and we have a little problem to which I couldnt find an answer to in the documentation.
     
    Our users can add links that look like this http://?user?.somesite.com . Problem is that when they do, if they then switch to html mode and then switch back to normal, an extra / is added leaving the link looking like this http:///?user?.somesite.com.
     
    Obviously there's something that can be done since while typing this post I tested it in your editor and I didnt encounter the same behavior.
     
    Thanks in advance for your help.
  •  05-27-2009, 11:55 PM 52582 in reply to 52500

    Re: problem: extra / added to some links

    Can you reproduce this issue in the following example?
     
     
    If not, can you post your code?

    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

  •  05-28-2009, 7:39 AM 52591 in reply to 52582

    Re: problem: extra / added to some links

    No, I was unable to reproduce it in the test page you provided.
     
    I've had time to do some test since my first post, and it would seem to only happen when I set the UrlType property programmatically.
     
    So here's my test code.
     
    -------------------------------------------------------------------------------
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <html> 
     <head>
      <link rel="stylesheet" href="asp.css"  type="text/css" />
     </head>
     <body>
      &lt;a href="http://?user?.somesite.com"&gt;http://?user?.somesite.com&lt;/a&gt;
      <br><br>
      <form name="theForm" action="Get_HtmlContent.asp" method="post" ID="Form1">
      <%
        Dim editor
         Set editor = New CuteEditor
         editor.ID = "Editor1"
         editor.Text = ""
         editor.FilesPath = "CuteEditor_Files"
       
       'editor.URLType = "Absolute"
       'editor.URLType = "SiteRelative"
       
       
         editor.Draw()
       %>      
      </form>
     </body>
    </html>
    -------------------------------------------------------------------------------
     
    So to reproduce, just take this code and the url that shows up in the web page. Once the page loads switch the editor to HTML mode, paste the link, switch back to normal. If the URLType lines are commented the link will be just fine. If you uncomment either line you will get an extra /.
     
    Thanks in advance for your help.
View as RSS news feed in XML