Relative vs. Absolute Paths with Images

Last post 07-12-2006, 4:59 AM by the4bs. 2 replies.
Sort Posts: Previous Next
  •  07-11-2006, 12:13 PM 20891

    Relative vs. Absolute Paths with Images

    You previous response to this topic was confusing and did not make sense to me or the previous questioner.
    This is a topic that is of great interest to users, so I will ask it again in the hope that we may get a clear answer with a working example and with code.


    My question:

    If I insert am image in Normal view I get:
     
    <div><img src="http://localhost:2192/acms2Web/filemanager/previewfile.ashx?id=180137&amp;thumb=true"></div>
     
    If I insert an image in HTML view, I get:
     
    <img src="../filemanager/previewfile.ashx?id=180137&amp;thumb=true">
     
    I want the second version.
     
    How do I make sure I can get the same result in Normal and HTML views?
     
    I have seen the example on:
     
    http://www.cutesoft.net/example/Relative-or-Absolute-URLs.aspx
     
    That seems to work quite well. However, as with most of the examples on this site - there is no code shown.
     
    Why don't you give the code for all of your examples? I'm sure it would save a lot of time and effort on this forum.
     
    Could you let me have the code for this example please?
     
     
    4bs

  •  07-11-2006, 12:21 PM 20892 in reply to 20891

    Re: Relative vs. Absolute Paths with Images

    4bs,
     
    The source code of the above 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

  •  07-12-2006, 4:59 AM 20917 in reply to 20892

    Re: Relative vs. Absolute Paths with Images

    Thank you for the answer. I have now found the code.
     
    I don't wish to be too critical, but I think it would be worth some time and effort for someone from your company, or for your company to get a professional documentation writer, to sort out the documentation for your products. It is my opinion that the documentation and examples let down the products. For example, why not state at the bottom of each example on your website that the code is available in the download package? Easier still, why not just have the code on the website (like they do on www.asp.net or www.4guysfromrolla.com or www.asp101.com - etc etc...)

    Many people using your products may not have the download package available to them. Even just to avoid the need to search through the download package for the example code would make it easier. If you insist on only making code available from the download package, why not make it more obvious that the examples are there. By simply restructuring the folder layout would help or just putting all the examples in the HowTo folder would be helpful.
     
    In the download package, there is a folder called HowTo. I would expect all examples and code to be in there. But they're not.
    In the download package you have a page called CommonTasks.htm. This shows example code. Is it on your website?
     
    I firmly believe that if you invested some time and money into good documentation with good examples, available on your website, you would increase the level of user satisfaction tremendously. This would have the added benefit of making your products more appealing. Also, less time would need to be spent on the forum.
View as RSS news feed in XML