From: owner-macperl-webcgi-digest@macperl.org (macperl-webcgi-digest) To: macperl-webcgi-digest@macperl.org Subject: macperl-webcgi-digest V1 #3 Reply-To: macperl-webcsg@macperl.org Sender: owner-macperl-webcgi-digest@macperl.org Errors-To: owner-macperl-webcgi-digest@macperl.org Precedence: bulk macperl-webcgi-digest Friday, March 5 1999 Volume 01 : Number 003 ---------------------------------------------------------------------- Date: Wed, 3 Mar 1999 10:20:11 -0500 From: Adam Witney <witneya@nmripo.nmri.nnmc.navy.mil> Subject: [none] Hi all, I'm not sure if this is a macperl problem or a basic HTML problem. I want to write a script which displays an image at a particular position (the whole image is still in the page... ie not just a fraction of the image is displayed). Also i would like the specific position highlighted with maybe a box or something.. does anybody have any ideas on how i would go about this? thanks Adam Dr Adam Witney, Malaria Program, Naval Medical Research Center, 12300 Washington Avenue, Rockville, MD 20852 Tel: 301 295 1821 Fax: 301 295 6171 ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org ------------------------------ Date: Wed, 3 Mar 1999 11:01:22 -0500 From: Adam Witney <witneya@nmripo.nmri.nnmc.navy.mil> Subject: [MacPerl-WebCGI] image display with perl >>I'm not sure if this is a macperl problem or a basic HTML problem. I want >>to write a script which displays an image at a particular position (the >>whole image is still in the page... ie not just a fraction of the image is >>displayed). Also i would like the specific position highlighted with maybe >>a box or something.. > >Have you looked at the GD library? It allows you to draw on GIF images, >the box on an image is a possibility. > >I'm not sure if I understand the rest of what you want... > >Pete I would rather the box was temporary... ie not written to the image file but overlayed.... i am not sure this is possibble with GD. the other aspect (the more important one in fact) was to goto a specific postion in the image file....such that this point is centered in the screen? thanks adam Dr Adam Witney, Malaria Program, Naval Medical Research Center, 12300 Washington Avenue, Rockville, MD 20852 Tel: 301 295 1821 Fax: 301 295 6171 ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org ------------------------------ Date: Wed, 3 Mar 1999 13:06:15 -0500 From: "Peter R. Wiley" <prdesign@sunlink.net> Subject: [MacPerl-WebCGI] Re: >Hi all, > >I'm not sure if this is a macperl problem or a basic HTML problem. I want >to write a script which displays an image at a particular position (the >whole image is still in the page... ie not just a fraction of the image is >displayed). Also i would like the specific position highlighted with maybe >a box or something.. > >does anybody have any ideas on how i would go about this? > >thanks > >Adam > >Dr Adam Witney, >Malaria Program, >Naval Medical Research Center, >12300 Washington Avenue, >Rockville, MD 20852 > >Tel: 301 295 1821 >Fax: 301 295 6171 You can do this, I think, with DHTML floating boxes. One would float the box (which would have to be a transparent GIF so that only the box's sides would be opaque) over the image. The box could be anitmated. I say "I think" because I am not sure if a floating box can be a transparent GIFs. I've just never tried it. This would be "easy" using GoLive CyberStudio which automates all the nasty HTML coding one would have to do. Strictly speaking, this would not be a perl script, but DHTML. Of course if you wanted to make the box interactive you might need CGI. The limitation would be that users would have to have DHTML capable browser. If you want to see an current example of this DHTML technique look at Adobe's (www.adobe.com) new website that animates some text and a butterfly. You'll need that DHTML capable browser however (Netscape 4.5 or similar). Peter R. Wiley PR/Design -- Research & Communication & Design Services for Public Affairs & Politics 301 South 21st Street Lewisburg, PA 17837-1615 Phone: 570-522-0738 Fax: 570-522-0736 E-Mail: prdesign@sunlink.net ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org ------------------------------ Date: Thu, 4 Mar 1999 16:30:13 -0000 From: james@djassociates.com (James Fox) Subject: [MacPerl-WebCGI] CGI how? Hi, NOVICE ALERT ! I am trying to learn about CGI scrips. (but know nothing as yet) I have this file which is written in perl called formmail.pl (downloaded from http://worldwidemart.com/scripts/cgi- bin/download.cgi ) and I want to use it with a form on my webpage (to validate the form etc.) How the hell do I go about it? How do I execute them from a web browser? How can I use chmod 755 ? and where is the so called Unix command line? Step by step instructions for stupid people are appreciated, preferably explaining how it works too. cheers. - ---------------------------------- James Fox - James@djassociates.com ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org ------------------------------ Date: Thu, 4 Mar 1999 12:15:03 -0500 From: "Peter R. Wiley" <prdesign@sunlink.net> Subject: Re: [MacPerl-WebCGI] CGI how? >Hi, >NOVICE ALERT ! > >I am trying to learn about CGI scrips. (but know nothing as yet) > >I have this file which is written in perl called formmail.pl >(downloaded from http://worldwidemart.com/scripts/cgi- >bin/download.cgi ) and I want to use it with a form on my webpage >(to validate the form etc.) > >How the hell do I go about it? In the first place, if you are asking for free advice, ask nicely. >How do I execute them from a web browser? CGI scripts are executed via the ACTION attribute of a FORM definition in a page's HTML e.g.: <FORM METHOD="POST" ACTION ="/cgi-bin/exec/script_name.pl"> <!--FORM HTML HERE--> </FORM> Here, ACTION specifies the path to the cgi script together with the execution method (not to be confused with METHOD). What path & exec method you should use varies from server to server, so you should ask your webmaster (if using an ISP) or read your server software manual (if running your own server) what you should use should use for the ACTION. Very probably you'll have to create a cgi-bin directory in a specified location in your web space and upload your script to that directory. The METHOD can be either POST or GET depending on what the script and/or server permits. >How can I use chmod 755 ? chomd is an unix command used to set the proper read/write/execute permissions for a file on a unix-based server. The value of each digit represents a different permission. You'll need to check if your server is unix-based. If it is, setting the chmod to 755 gives you server permission to attempt to execute the file. If you are a Mac user, use Fetch (free from ftp.dartmouth.edu) to set permissions from the Remote menu after selecting the file from the file list in the ftp session dialog box. You'll need to check all of the boxes in the execute column. >and where is the so called Unix command line? It's a DOS-like command line, that, if you are using a Mac and Fetch you only rarely will need to worry about. You certainly don't need to worry about it to set up a simple form-handling script unless something goes awfully wrong. >Step by step instructions for stupid people are appreciated, If all of this is Greek to you, you'll need to buy a book or two: at least, a comprehensive tome on HTML with a good chapter on forms & CGI. Also look at www.webmonkey.com and search around for a basic tutorial on CGI -- I am sure you can find most of the information you need there. Also, keep in mind its going to take longer than you think to get up to speed on all of this and get the form working. If you need it for a business use ASAP or sooner, hiring a consultant is well worth the money in the long run because you will save a great deal of time an avoid commitment to software that may not serve your needs in the long run. Peter R. Wiley PR/Design -- Research & Communication & Design Services for Public Affairs & Politics 301 South 21st Street Lewisburg, PA 17837-1615 Phone: 570-522-0738 Fax: 570-522-0736 E-Mail: prdesign@sunlink.net ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org ------------------------------ End of macperl-webcgi-digest V1 #3 ********************************** ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org