Forums | Email a Colleague | FAQ

Dr. Website Archives

Dr. Website® Archives 2002

May 9, 2002
    Question:
    I am trying to use the mailto: tag to get form feed back, however it works great on my Windows 98 machine; it does not work on My ME machine, with IE 5.5 and it will not work in Netscape 6.2 either, is this a ME thing? Because my browser and mail is configured properly. Thanks,

    Answer:
    The problem may be on your particular machine, as it's not a Microsoft Windows ME or MSIE 5.5 problem. I'm personally running Windows ME on the machine I'm using now, and mailto's work just fine. Thanks,
    Thanks

    --Dr.Website

    Question:
    Dear Dr. Website:
    I am a novice Web developer. I know Perl is the scripting language used in writing CGI, and that all CGI files must have .cgi extensions. But why do some books I've read have CGI programs ending in .pl? Second, for .pl programs, you need to compile, and this does not go through the server, right? But CGI (Perl) programs do, correct?

    Answer:
    You have come close to answering your own question! CGI stands for Common Gateway Interface, and it's simply a way to allow programs running on a server to interact with a user working on a browser. CGI programs can be written in virtually any programming language.

    Perl is frequently used not because it's mandatory, but because it's a good all-around language for this kind of work, and, being freely available, it will run on almost any server. The file extension for Perl is .pl, so if a CGI program is written in Perl, either that or .cgi will work.

    However, do note that Perl is actually not generally compiled at all, but interpreted, which means changes that happen to Perl programs immediately take effect. There are Perl compilers available, however.

    Please visit the CGI pages at
    http://webdeveloper.com/categories/cgi-perl/index.html and http://wdvl.com/Authoring/CGI/
    for more information on CGI programming, as well as our own FAQ page.
    Thanks,

    --Dr.Website

    Question:
    Dear Dr. Website:
    I've been looking for a Java applet that will display an image which, when clicked, will be replaced in the same location and window with another image. For example, an opaque square that will reveal an image when clicked.

    This should enable me to design a game for language learners, where half of the squares hide an image and the other half hide a sound file.

    I'm using a FrontPage Web page with hover buttons, but now I want to vary the pattern for quizzes and games. I've found all sorts of cool tricks, but none that does exactly what I want.

    I am not a techie and do not write HTML or Java. If I can't design it in FrontPage or cut and paste code into my page, I probably can't do it. Can you help?
    Thanks

    Answer:
    You can paste the code from below into your page, and replace the image names with your own image names. Note that the first image must be the same dimensions as the second (or vice versa). <SCRIPT LANGUAGE="JAVASCRIPT"> <!--// function clicktext(image){ document.clear.src=image; } file://--> </SCRIPT> <A HREF="#" onClick=clicktext('sometext.gif');> <IMG SRC="first.gif" NAME="clear" BORDER=NO WIDTH=191 HEIGHT=37></A>
    Thanks

    --Dr.Website ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ForumsEmail a Colleague · FAQ

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs