Image not visible (does not have absolute path)

Last post 04-01-2005, 11:11 AM by Adam. 5 replies.
Sort Posts: Previous Next
  •  03-31-2005, 4:57 PM 5206

    Image not visible (does not have absolute path)

    Hi,
          I added an image to the message in the editor. And when I send the message in an e-mail and open it, the image is not being displayed. When I view source in the e-mail message, it has the relative path in src and not the absolute path. But, then if I add an image in the message and go to HTML view and save it, and then send e-mails, it has the absolute path in it.
     
    Thanks,
    Aparna.
  •  03-31-2005, 5:58 PM 5211 in reply to 5206

    Re: Image not visible (does not have absolute path)

    Cute Editor support three standard paths:

    1. absolute paths without the domain name ( <a href="/default.aspx">Home</a> )
    2. absolute paths with the domain name ( <a href="http://cutesoft/default.aspx">Home</a> )
    3. relative paths ( <a href="default.aspx">Home</a> or <a href="#top">Top</a>) 

    You need to Use absolute paths with the domain name in your case.

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

    Example:

    <CE:Editor id="Editor1" RemoveServerNamesFromUrl="false" runat="server"></CE:Editor>

     

     


    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

  •  04-01-2005, 10:04 AM 5225 in reply to 5211

    Re: Image not visible (does not have absolute path)

    Hi Adam,
                     I already have RemoveServerNamesFromUrl and ChangeAbsoluteURLsToRelative set to false. It gets the absolute paths when I go to the HTML view(the HTML tab on the editor) before saving it. I guess when I open it in HTML view, it is sticking the absolute path in there. But when I save the message without going to HTML view, it does not have the absolute path for the image.

    Please help.
    Thanks,
    Aparna.
     
     
  •  04-01-2005, 10:31 AM 5227 in reply to 5225

    Re: Image not visible (does not have absolute path)

    Aparna,

    It's strange.

    Please test the following link:

    http://cutesoft.net/example/full_links.aspx
     
    The editor configuration:
    <CE:Editor  RemoveServerNamesFromUrl="false" id="Editor1" runat="server" ></CE:Editor>
     
     

    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

  •  04-01-2005, 10:52 AM 5234 in reply to 5227

    Re: Image not visible (does not have absolute path)

    Hi Adam,
                       I have tested it. When I add an image and go to HTML view and then to Normal view, and save the message, here is the output.
     
    <img height="111" src="http://cutesoft.net/uploads/acrobat.jpg" width="140" />
    <table cellspacing="4" cellpadding="4" bgcolor="#ffffff" border="0">
        <tbody>
            <tr>
                <td>
                    <p>
                        <img height="53" src="http://cutesoft.net/Uploads/j0262681.jpg" width="80" />
                    </p>
                </td>
                <td>
                    <p>When your algorithmic and programming skills have reached a level which you cannot improve any further, refining your team strategy will give you that extra edge you need to reach the top. We practiced programming contests with different team members and strategies for many years, and saw a lot of other teams do so too. </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <img height="52" src="http://cutesoft.net/Uploads/PH02366J.jpg" width="80" />
                    </p>
                </td>
                <td>
                    <p>From this we developed a theory about how an optimal team should behave during a contest. However, a refined strategy is not a must: The World Champions of 1995, Freiburg University, were a rookie team, and the winners of the 1994 Northwestern European Contest, Warsaw University, met only two weeks before that contest. </p>
                </td>
            </tr>
        </tbody>
    </table>
    <br />
    <br />

    It appears to be perfect. But if I add an image and save it without going to HTML view, here is the output.

    <img height="111" src="/uploads/acrobat.jpg" width="140" />
    <table cellspacing="4" cellpadding="4" bgcolor="#ffffff" border="0">
        <tbody>
            <tr>
                <td>
                    <p>
                        <img src="http://cutesoft.net/Uploads/j0262681.jpg" width="80" />
                    </p>
                </td>
                <td>
                    <p>When your algorithmic and programming skills have reached a level which you cannot improve any further, refining your team strategy will give you that extra edge you need to reach the top. We practiced programming contests with different team members and strategies for many years, and saw a lot of other teams do so too. </p>
                </td>
            </tr>
            <tr>
                <td>
                    <p>
                        <img src="http://cutesoft.net/Uploads/PH02366J.jpg" width="80" />
                    </p>
                </td>
                <td>
                    <p>From this we developed a theory about how an optimal team should behave during a contest. However, a refined strategy is not a must: The World Champions of 1995, Freiburg University, were a rookie team, and the winners of the 1994 Northwestern European Contest, Warsaw University, met only two weeks before that contest. </p>
                </td>
            </tr>
        </tbody>
    </table>
    <br />
    <br />

    Now 'http://cutesoft.net'
     is missing.
     
    Thanks,
    Aparna.



  •  04-01-2005, 11:11 AM 5236 in reply to 5234

    Re: Image not visible (does not have absolute path)

    Let’s try this.

    1. Click the insert image button.
    3. 
        In the URL field, if the path is relative path (/Uploads/j0262681.jpg, or ../Uploads/j0262681.jpg), after postback, you will get a relative path.
        In the URL field, if the path is full path (http://cutesoft.net/Uploads/j0262681.jpg), after postback, you will get a full path.

    Hope it helps.

    Let me know if you have any further questions.


    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