Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

IMG tag not displaying image
I have ASP (classic) code that writes out a table and sets the <img....> tag
with a virtual directory source, e.g. src='/test/imghold/xyz.png', and the
images do not appear on the IE page.  The code is from a production site
that works fine.  We just duplicated the web site to one named test and now
the images do not display.  The IMG item is in a TD element of a table.
Also, I looked at the "view source" of the page and it shows the <IMG
src='/test/imghold/xyz.png'...> just fine.  I even tried it with different
images and none of them show up.  Can anyone help?  Thanks.

David



Report this thread to moderator Post Follow-up to this message
Old Post
David C
10-29-04 01:55 PM


Re: IMG tag not displaying image
Check to make sure both servers have the virtual directories configured the
same

Jeff

"David C" <dlchase@lifetimeinc.com> wrote in message
news:utz#bPbvEHA.3872@TK2MSFTNGP11.phx.gbl...
> I have ASP (classic) code that writes out a table and sets the <img....>
tag
> with a virtual directory source, e.g. src='/test/imghold/xyz.png', and the
> images do not appear on the IE page.  The code is from a production site
> that works fine.  We just duplicated the web site to one named test and
now
> the images do not display.  The IMG item is in a TD element of a table.
> Also, I looked at the "view source" of the page and it shows the <IMG
> src='/test/imghold/xyz.png'...> just fine.  I even tried it with different
> images and none of them show up.  Can anyone help?  Thanks.
>
> David
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Dillon
10-29-04 08:55 PM


Re: IMG tag not displaying image
They are actually on the same physical server, if that helps.  Also, I
did a Server.MapPath("/test/imghold/") on both (other was
/imaging/imghold/) and they both returned the same physical directory.
Both web sites have the same virtual directory named /imghold and both
point to the same physical directory.  Another process that physically
creates the image and saves it to that directory prior to the html
display of that image uses the same virtual path.

David



*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!

Report this thread to moderator Post Follow-up to this message
Old Post
David
10-29-04 08:55 PM


Re: IMG tag not displaying image
Hard code the src attribute so it works..and look for the differences.

Jeff
"David" <daman@biteme.com> wrote in message
news:uARskJcvEHA.1452@TK2MSFTNGP11.phx.gbl...
> They are actually on the same physical server, if that helps.  Also, I
> did a Server.MapPath("/test/imghold/") on both (other was
> /imaging/imghold/) and they both returned the same physical directory.
> Both web sites have the same virtual directory named /imghold and both
> point to the same physical directory.  Another process that physically
> creates the image and saves it to that directory prior to the html
> display of that image uses the same virtual path.
>
> David
>
>
>
> *** Sent via Developersdex http://www.examnotes.net ***
> Don't just participate in USENET...get rewarded for it!



Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Dillon
10-29-04 08:55 PM


Re: IMG tag not displaying image
Do you mean hard coded with PHYSICAL path? e.g. D:\imghold\xyz.png  ?

David



*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!

Report this thread to moderator Post Follow-up to this message
Old Post
David
10-29-04 08:55 PM


Re: IMG tag not displaying image
No..src=test.jpg

then

src=/test/test.jpg
src=test/test.jpg

try a few things

"David" <daman@biteme.com> wrote in message
news:OD4cKrcvEHA.3376@TK2MSFTNGP12.phx.gbl...
> Do you mean hard coded with PHYSICAL path? e.g. D:\imghold\xyz.png  ?
>
> David
>
>
>
> *** Sent via Developersdex http://www.examnotes.net ***
> Don't just participate in USENET...get rewarded for it!



Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Dillon
10-29-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:18 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.