Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    best way to create a message/email form

    hi again,

    i'm trying (and failing) to create a small form, basically a single textarea that:
    a) submits on keypress (enter) but without having a submit button.
    b) doesn't launch users default email program.
    c) includes the user's email addy as a line within the txt file sent on submission.

    also, this fits within an area 55px tall by 170px wide (not sure if that's really pertinent; i've assigned overflow:auto to scroll if they write more than the one or two lines that size allows, but the scrollbars take up a significant amount of real estate at certain resolutions - and as far as i can tell, css only allows for the recoloring of scrollbars and is incapable of adjusting the size). at the moment, i'm using an iframe whose src is page that's just one big form with the mailto: action, that's in a div (fixed position, overflow auto) with the css body scrollbar declaration in the src page so as not to affect any of the other scrollbars on the page that houses the iframe. i've included a submit button but styled it with css to render it 100% white and blend into the pages' background, as well as tucking it behind the scenes with an absolute positioning of top:-1000 (it's included solely to maintain the integrity of the enter keypress). this kinda works but i think there's a better way. if i understand correctly, php, html and js can all perform the operations needed for a form, so my question is:

    how should i approach this? i'd like to keep it as simple as possible, without sacrificing any of the key's i mentioned above. thanks in advance... wasn't sure where exactly to post this one but you guys in the javascript forum have always been a terrific help. it's appreciated.

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    b) doesn't launch users default email program.
    You will need to use Server Side Scripting to satisfy this requirement.
    Perhaps you should P/M a Mod to move this to the appropriate forum.

    .....Willy

  • #3
    Registered User
    Join Date
    Apr 2004
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thx

    wont let me nt

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    IE supports "mailto:" as a legitimate action. whereas NN4 doesn't. not sure about latest NS6+/Moz, but if it does, then you won't need to use serverside coding at all.

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,946
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Quote Originally Posted by jbot
    IE supports "mailto:" as a legitimate action. whereas NN4 doesn't. not sure about latest NS6+/Moz, but if it does, then you won't need to use serverside coding at all.
    Willy already quoted it. And I'll do it again.
    Quote Originally Posted by immedicable
    b) doesn't launch users default email program.


  •  

    Posting Permissions

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