To put line breaks in a textarea, you don't have to use &#13.  Just put the
line breaks into the template normally.

For example,

<textarea>




stuff
</textarea>

will put about 4 or 5 line breaks before "stuff" in the textarea.

AFAIK, the only way to remove the hyphens is through Javascript.  You can't
take them out before they are rendered.  You have to take them out after
they
are rendered (on the client using javascript... or some other client-side
browser code).

How?  Well, you can put the <!--IMAIL.MessageBodyForward--> tag inside a
hidden textarea and parse it out from there or use a separate XML page
to load up the message body first.  Then use the XMLDOM object to load it
into a JavaScript variable (or other client side code variable).  The only
problem is that XMLDOM doesn't fully support ISO-8864 (or something like
that...
meaning certain special characters)... and the "textarea" method won't work
for certain HTML formatted emails.

Personally, it's too much trouble.  I'd tell your customer that it's either
going to cost A LOT to remove those hyphens or tell a white lie and say
it's impossible.

-Norm

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Guy Isabel
Sent: Sunday, April 21, 2002 2:54 PM
To: IMail Forum
Subject: [IMail Forum] Inserting blank lines when replying or
forwarding-with-edit


Greetings,

I just upgraded IMail from 7.04 to 7.07 (with new Web templates) and I find
that a seemingly trivial customization I had made to the 7.04 templates does
not work anymore. The underlying rationale is that users wish to have a few
blank lines preceding the separator line ("Original Message") in which to
start composing text. The default behavior of the stock Ipswitch templates
forces them to position the cursor at the very beginning of the text area
and hit <Enter> a few times.

At these users' request, I had added five "&#13;" before the
<!--IMAIL.MessageBodyForward--></textarea> and
<!--IMAIL.MessageBodyReply--></textarea> tags in files FWDMSG1.HTML and
REPLYMSG1.HTML respectively. This doesn't work in 7.07, even if I use <br>
or <p> as these HTML tags show up literally rather than performing their
expected function. Moreover, I also want to trim the lengthy string of
hyphens preceding and following the "Original Message" separator line and am
at a loss to find out where this is "hard-coded".

Any help gratefully received!

Guy
--
Guy Isabel     <[EMAIL PROTECTED]>




Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/

Reply via email to