HighDots Forums  

Re: How to insert text on multiple lines - in "body" of mailto:

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: How to insert text on multiple lines - in "body" of mailto: in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
GArlington
 
Posts: n/a

Default Re: How to insert text on multiple lines - in "body" of mailto: - 08-10-2008 , 10:57 AM







"G. Morgan" <no_em (AT) il (DOT) invalid> wrote

Quote:
I don't have access to a server-side app. so this must be done client
side.

How do I get:
(thebody)+(dropdown) to appear on their own lines in the resulting email?

snap
script
function now()
{
var thebody=document.testform.thebody.value;
var dropdown=document.testform.dropdown.value;
window.location.href="mailto:nowhere (AT) invalid (DOT) com?subject=Mail Test&body="
+
(thebody)+(dropdown);
}
/script
snap
Did you try <cr><lf> [chr(10) + chr(13) or other way around] combination?


** Posted from http://www.teranews.com **


Reply With Quote
  #2  
Old   
GArlington
 
Posts: n/a

Default Re: How to insert text on multiple lines - in "body" of mailto: - 08-12-2008 , 07:35 AM






On Aug 10, 6:53 pm, G. Morgan <no... (AT) il (DOT) invalid> wrote:
Quote:
GArlington wrote:
Did you try <cr><lf> [chr(10) + chr(13) or other way around] combination?

No, how would I do that?

--
It takes a big man to cry,
but it takes a bigger man to laugh at that man. -Jack Handey

Take back Usenet <-->http://improve-usenet.org
<a href="mailto:blah (AT) blah (DOT) com?Subject=thisSubject&Body=The message's
first paragraph.%0ASecond paragraph.%0AThird Paragraph.">mailto</a>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.