Insert Image

Last post 10-26-2006, 1:32 PM by Adam. 5 replies.
Sort Posts: Previous Next
  •  10-25-2006, 9:38 AM 23804

    Insert Image

    Insert image doesn't work...
     
    I changed the path in de Security --> Default.config file, /uploads to ../uploads, because it didn't work at all in the first place
    the left insert image works fine but te right with the preview doesn't work.
     
    When I want to insert an image, i can see the image in the preview window and adjust the size etc.
    but when i insert the image into the editor he doesn't show the image...
    In HTML view i can see the path of the image is not correct
     
    In HTML view I get:
    <img height="200" alt="" src="../uploads/logo.gif" width="167" border="0">
    and it has to be
    <img height="200" alt="" src="http://cutesoft.net/uploads/logo.gif" width="167" border="0">
     
    If i change the path in the Security --> Default.config file back to /uploads it doesn't work at all, then i can't browse
     
    can some one help me???
  •  10-25-2006, 1:08 PM 23810 in reply to 23804

    Re: Insert Image

    Rogerke,
     
     

    Use absolute paths with the domain name.   

     


    To use absolute paths with the domain name, you need to set Editor.RemoveServerNamesFromUrl property to false.

    Example:

          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               editor.RemoveServerNamesFromUrl = false
               editor.UseRelativeLinks= false
               editor.Text = "Hello World"
               editor.Draw()
          %>
     
    Demo:
     
     
     

    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

  •  10-26-2006, 2:48 AM 23828 in reply to 23810

    Re: Insert Image

    That's not it..
    This is my map structure:
     
    cutesoft (map)
                         default.asp
                         images (map)
                         CuteEditor_Files (map)
                                                          Configuration (map)
                                                                                        Default.config
                                                          InsertImage.asp
                                                          browse_image.asp
     
    the only things i changed was the map uploads to images
    I changed, in Default.config file:
    <security name="ImageGalleryPath">/images</security> (could not browse)
    to
    <security name="ImageGalleryPath">../images</security>(browse worked)

    I go to default.asp and click on Insert Image, the window opens.
    I click on the image in the browse window and i see a preview of the image in the preview window.
    When I click the Insert button he inserts the image, I see the right size of the image but I can't see it ()
    When I look into the HTML view i get:
     
    <img height="100" alt="" src="../images/Cindy_Crawford.jpg" width="124" border="0">
    But the file default.asp is in the same directory as the map images, so it doesn't need to go up (../)
    the src has to be:
    <img height="100" alt="" src="images/Cindy_Crawford.jpg" width="124" border="0">
     
    If I change, in Default.config file:
    <security name="ImageGalleryPath">../images</security>
    back to
    <security name="ImageGalleryPath">/images</security>
     
    I can't even browse so i cant select an image and I can't insert an Image.
     
    What to do?
  •  10-26-2006, 2:59 AM 23830 in reply to 23828

    Re: Insert Image

    You should use
     
    <security name="ImageGalleryPath">/images</security>
    instead of
     
    <security name="ImageGalleryPath">../images</security>
     
    >>I can't even browse .
     
    It's strange. Is that possible?? Does that folder exist? Does Internet guest account has the read permission to that folder?
     
     
     
     
     
     


    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

  •  10-26-2006, 3:10 AM 23831 in reply to 23830

    Re: Insert Image

    I changed it back to:
    <security name="ImageGalleryPath">/images</security>
    but then he doesn't want to load: browse_image.asp
    the browser says:
     
    HTTP 500.100 - Internal Server Error - ASP fout
    Internet Information Services
     
    Runtime fou Microsoft VBScript (0x800A004C)
    /cutesoft/CuteEditor_Files/browse_Img.asp, line 65
     
    I'm working local...
    C:\Inetpub\wwwroot\cutesoft\
    So the internetadress is:
    localhost/cutesoft/default.asp
    But this can't be it?
  •  10-26-2006, 1:32 PM 23848 in reply to 23831

    Re: Insert Image

View as RSS news feed in XML