www.webdeveloper.com
Results 1 to 3 of 3

Thread: Sending keystrokes

  1. #1
    Join Date
    Jan 2003
    Posts
    53

    Sending keystrokes

    I'm creating a form using mailTo:. I am using radio buttons to select who it is sent to. I am using the radio buttons to change the mailTo: address.

    <SCRIPT>

    // Used to display and load email address
    var address="";

    // Called by onClick in radio buttons
    function setAddress(addr)
    {
    address=addr;
    document.email.display.value=address;
    }

    function setCarbon(cc)
    {
    carbon=addr;
    document.email.display.value=carbon;
    }

    // Called by View Mail Window button
    function doMail()
    {
    window.location="mailto:"+address+"?subject=Laptop Reservation Request&body=Name: "+document.email.name.value+"%0APhone: "+document.email.phone.value+"%0ADepartment: "+document.email.department.value+"%0ABuilding: "+document.email.building.value+"%0AUserID: "+document.email.userid.value+"%0A%0AManager: "+document.email.manager.value+"%0AManager's Phone: "+document.email.ManagerPhone.value+"%0A%0APickup Date: "+document.email.pickup.value+"%0AReturn Date: "+document.email.returndate.value+"%0A%0AComments: "+document.email.comment.value;
    }

    // Called by Reset The Form button
    function resetForm()
    {
    address="";
    }

    </SCRIPT>

    <form name="email" method="post">

    <input type="radio" name="radiobutton" onClick="setAddress('firstaddress@here.com')">Test - Lisa

    This works, but they still have to press the Send button and then go through the spell check in Outlook. My question is: Is there a way to make it send automatically and skip the spellcheck?

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,123
    I am sure they could turnn off spell check in outlook...the other solution will be to use some server side languae..such as jsp,php or asp
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    59
    Client side email sending skipping outlook:

    Code:
    <FORM action="mailto:valid email address" method="post">
    <INPUT type="submit" value="Send Email" name="button"></FORM>
    Make sure submit button has a name otherwise doesn't work.

    -------------

    You're welcome!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles