Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: CGI: Raw image data

by devnul (Monk)
on Apr 29, 2005 at 00:05 UTC ( #452497=note: print w/replies, xml ) Need Help??


in reply to Re^3: CGI: Raw image data
in thread CGI: Raw image data

Just to clarify a little bit:
<img src="PATH_TO_CGI.cgi?whatever_params_youneed">

Replies are listed 'Best First'.
Re^5: CGI: Raw image data
by jhourcle (Prior) on Apr 29, 2005 at 01:11 UTC

    I'd actually suggest using PATH_INFO to pass around the parameters, as it makes it more likely that browsers will cache it, and not attempt to resubmit, because they see a QUERY_STRING, and shut off caching. (You can also send cache-control headers).

    And don't forget your ALT attribute:

    printf( '<img src="%s/%s" alt="%s" width="%i" height="%i" />', $cgi_url, @image{qw(id description width height)} );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://452497]
help
Chatterbox?
[Corion]: Viewing Tk Colours (Colors) by name has the list of all Tk colour names
[choroba]: Aren't they the standard X colours?
[ambrus]: choroba: that's not clear, since Tk runs on systems that don't even have X.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-10-17 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (227 votes). Check out past polls.

    Notices?