Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] mailto text box for subject


  • From: javascript@xxxxxxxxxx (Felix)
  • Subject: [Javascript] mailto text box for subject
  • Date: Tue, 22 Oct 2002 11:15:13 +0200

C'est un message de format MIME en plusieurs parties.

------=_NextPart_000_0022_01C279BC.4AA7D200
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0023_01C279BC.4AA7D200"


------=_NextPart_001_0023_01C279BC.4AA7D200
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

look at this to change linefeed by <BR>
A+

 F=E9lix
 bruno.lanciau@xxxxxxx
----- Original Message -----=20
  From: Sujimon=20
  To: javascript@xxxxxxxxxx=20
  Sent: Tuesday, October 22, 2002 10:25 AM
  Subject: [Javascript] mailto text box for subject


  Hi ,=20
  =20
  Iam trying to create mailto form with a text area to write the subject =
but problrm is that the text box is a=20
  recognising the line feeds. Its just dumping all text in one line =
without any line feeds. Pls help .
  =20
  =20
  <TEXTAREA ID=3DTxtBody MAXLENGTH=3D250 ROWS=3D3 COLS=3D122 =
style=3D"FONT-FAMILY: verdana; FONT-SIZE: 12px;"></TEXTAREA>

   window.location.href=3D"mailto:"; + LAdd +"?body=3D" + TxtBody.value;

  =20
  Thanks / Suji
  =20

------=_NextPart_001_0023_01C279BC.4AA7D200
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>look at this to change linefeed by=20
&lt;BR&gt;</FONT></DIV>
<DIV>A+</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;F=E9lix<BR>&nbsp;<A=20
href=3D"mailto:bruno.lanciau@xxxxxxx";>bruno.lanciau@xxxxxxx</A><BR>----- =
Original=20
Message ----- </DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:sujimon@xxxxxxxxxxxx"; =
title=3Dsujimon@xxxxxxxxxxxx>Sujimon</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:javascript@xxxxxxxxxx"=20
  title=3Djavascript@xxxxxxxxxx>javascript@xxxxxxxxxx</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, October 22, 2002 =
10:25=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Javascript] mailto =
text box for=20
  subject</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi ,&nbsp;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Iam trying to create mailto form with =
a text area=20
  to write the subject but problrm is that the text box is a =
</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>recognising the line feeds. Its just =
dumping all=20
  text in one line without any line feeds. Pls help .</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&lt;TEXTAREA ID=3DTxtBody =
MAXLENGTH=3D250 ROWS=3D3=20
  COLS=3D122 style=3D"FONT-FAMILY: verdana; FONT-SIZE:=20
  12px;"&gt;&lt;/TEXTAREA&gt;<BR></FONT></DIV>
  <DIV><FONT face=3DArial =
size=3D2>&nbsp;window.location.href=3D"mailto:"; + LAdd=20
  +"?body=3D" + TxtBody.value;<BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks / Suji</FONT></DIV>
  <DIV><FONT face=3DArial =
size=3D2>&nbsp;</DIV></BLOCKQUOTE></FONT></BODY></HTML>

------=_NextPart_001_0023_01C279BC.4AA7D200--

------=_NextPart_000_0022_01C279BC.4AA7D200
Content-Type: text/html;
	name="returnBR.html"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="returnBR.html"

<HTML>
	<BODY>
		<FORM name=3D"monFormulaire">
		<TEXTAREA rows=3D"7" name=3D"T1" cols=3D"35"></TEXTAREA>
            <INPUT type=3D"button" value=3D" R=E9cup=E8re les [return] " =
name=3D"B_BR" onclick=3D"metBR()">
		</FORM>
	</BODY>

	<script language=3D"JavaScript">
		function metBR()
		{
		saisie=3Dwindow.document.monFormulaire.T1.value;
		alert(saisie);
		re =3D /\n/gi;
		saisie2=3Dsaisie.replace(re,"<BR>");
		alert(saisie2);
		}
	</script>
</HTML>
------=_NextPart_000_0022_01C279BC.4AA7D200--