image via cgi perl on netscape navigator 
Author Message
 image via cgi perl on netscape navigator
    I have not been able to use a perl script with cgi.pm to load an
image on netscape navigator 4.6  run as a test from my hard drive
offline
    i just get one of those funny looking little image substitutes
the alternate label works fine  
    no error messages  and i have used both

print img ({src=>"Electron.gif"});

and

print "<img src = 'Electron.gif'>";

    i have tried every kind of path for the source file (eee.g.,
C:/Apache/cgi-bin/Electron.gif       this is what works on ie 5.0    
     although the file name should suffice if the image is in the same
directory as all else.

the image loads fine on ie 5.0

i am running my cgi perl scripts off of an apache web server running
under window nt server

i am guessing all will work ok when uploaded to my unix server but
would like to see it work first on my hard drive offline

if i use the <img src = "Electron.gif" width = 400 height = 400> on a
bare html file it works just fine on both navigator and ie

i have also tried several different images both gif and jpg

does anyone have any idea what could be the problem, why navigator
refuses to load the image.



Fri, 16 Nov 2001 03:00:00 GMT  
 image via cgi perl on netscape navigator

Quote:

>     I have not been able to use a perl script with cgi.pm to load an
> image on netscape navigator 4.6  run as a test from my hard drive
> offline

It sounds (from the remainder of your description) as if you're having
trouble configuring your webserver to run scripts of any kind, not just
Perl programs.

When you're having trouble with a CGI program in Perl, you should first
look at the please-don't-be-offended-by-the-name Idiot's Guide to solving
such problems. It's available on CPAN.

   http://www.perl.com/CPAN/
   http://www.perl.org/CPAN/
   http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
   http://www.perl.org/CPAN/doc/manual/html/pod/

Hope this helps!

--
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



Fri, 16 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Perl and Netscape Navigator

2. Getting around Netscape's cache via a perl cgi script

3. Netscape Navigator 3.x

4. Changing password for given user in Netscape LDAP server via CGI script

5. CGI output displayed as text in Navigator

6. execute perl on Windows NT via Netscape

7. How MS Explorer And Navigator Handle CGI - Web Review

8. returning a image via perl

9. from image to Pdf via perl mod

10. Uploading images via Perl script

11. Netscape Image cacheing control?

12. CGI image generation using Image::Magick

 

 
Powered by phpBB® Forum Software