Forums | Email a Colleague | FAQ

Dr. Website Archives

Dr. Website® Archives 2002

September 26, 2002
    Question:
    Dear Dr. Website: Can u help by providing me the syntax for using more that one return Function on onSubmit event of form. <form onSubmit="return verifymail(this.form"),return checkstat("this.form")> this code is not working.
    Thank You

    Answer:
    You'd use something like this: <INPUT TYPE=Submit VALUE="Go" onClick="prompt('huh?'); alert('YIKES');">
    Thanks

    --Dr.Website

    Question:
    Dear Dr. Website:
    How can I get the answer to a simple FP question. I have looked all over Microsoft and even paid the $35 for support with NO LUCK. All I want to know is how to make a hyperlink to a Word file (.doc) and make it such that it downloads the file instead of opening it in Word. Naturally when the download box comes up, the user saves it (or not) wherever they want. THANKS

    Answer:
    There are two ways of doing this:

    * configure the MIME types on your web server to download .doc files instead of trying to display them, or
    * zip the doc files up, and allow folks to download the zip file containing the doc file

    Other than that, there's not much you can do to force a download using a .doc file.
    Thanks,

    --Dr.Website --Dr.Website

    Question:
    Dear Dr. Website:
    I am looking for a JS plugin detector for IE since

    navigator.plugins

    Does not seem to work with IE...

    Thank you!

    Answer:
    Here's a little script that detects Flash, and if it isn't present, directs the user to another page:

    <SCRIPT LANGUAGE="JavaScript">
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    <!-- Begin
    var plugin=navigator.plugins["Shockwave Flash"];
    if (plugin) { window.location=('http://www.page.with.plugin.com');
    }
    else {
    window.location=('http://www.page.without.plugin.com');
    }
    // End -->
    </script>

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

ForumsEmail a Colleague · FAQ

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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