Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: <img> is not displaying images

by inman (Curate)
on Oct 21, 2005 at 08:36 UTC ( [id://501919]=note: print w/replies, xml ) Need Help??


in reply to <img> is not displaying images

Try using either Mozilla or Firefox with the Live HTTP Headers plugin to work out what your browser is asking for. When you load the page, the HTTP requests for all resources on the page will be recorded by the Live Headers plugin.

In general you should:

  1. Check that your script is creating the correct HTML for the img tag.
  2. Take the img source and us it with the page URL to investigate whether there is a problem server side.
  3. Use Live Headers to investigate the transaction looking for things that are not related to the HTML such as cookies etc.

My bet is that the source of your image tag refers to a resource that isn't there. E.g. your script is running as http://localhost/cgi-bin/myscript.cgi and the browser is creating the URL http://localhost/cgi-bin/htdocs/test/DailyReport.jpg for your image. I reckon that this isn't what you want.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://501919]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found