Forums
This topic is locked
localhost strange behavior
Posted 18 Sep 2006 21:12:11
1
has voted
18 Sep 2006 21:12:11 Christian Houmann posted:
I know the example only shows pure html, but it is part of an asp-page, and the problem is serverdependent:I am developping a cms, where the costumers can upload their own pics, and choose pics from a collection I make. Instead of uploading the pics to every site, every time I put on new pics, I would like the pages created by the cmsadmins to link directly to the image stored on my server, eg. like this:
(Below part of www.client.com/show.asp<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
...
<body>
<h1>Show pictures on other server</h1>
<p><img src="www.myserver.com/upload/products/nails.jpg" alt="Nails" width="200" height="200" /></p>
</body>
...
When I tried to view this by F12 in Dreamweaver (becoming:localhost/3z_x/show.asp), it did not show the picture, and when I did a "View Source" in Explorer, it only showed this:
...
<body>
<h1>Show pictures on other server</h1>
<p>
</body>
...
No picture, and no end-tag for the p-tag !?
Then I renamed the file from show.<b>asp</b> to show.<b>html</b> and when I loaded it directly from Windows Explorer, it did the job I wanted, getting a picture from my remote site! (Address: C:\Inetpub\wwwroot\3z_x\show.html)
BUT the strange error still happens even when loading the file from Dreamweaver! (Address: localhost/3z_x/show.html).
Can anyone explain this?
I have tried to upload both files (the asp and html versions) to www.demo.myserver.com to show the image from www.myserver.com, and both acted the wrong way, showing no picture.
Should it not be possible to do this trick? (I know it can be done with the content of a html file by use of the MSXML2.ServerXMLHTTP object, but this is not html or text...)
Edited by - houmann on 18 Sep 2006 21:22:09