|
This is a tricky one. You are passing the whole string to the
email client as a URL, therefore you have to escape the new line character for
the same reason that you escaped the location.href. This is what you
need:
mail_str += "I found your project at " +
encodedURL + escape("\r\n");
I have included both carriage return and new line for good
measure. Note that you cannot use #Chr(13)##Chr(10)# because these characters
are generated server-side, creating a new line in the rendered code, which will
cause a _javascript_ syntax error.
Regards: Ayudh
+--------------------------------------------------------------+ | Turn
on your Revenue
Stream...
| | Bolt on a Virtual Cash Register to your e-commerce site now. | |
VeriPay from Xilo Online: http://www.xilo.com
| +--------------------------------------------------------------+
----- Original Message -----
Sent: Monday, March 10, 2003 13:50
Subject: [cfaussie] Re: _javascript_
syntax?
thanks for the promt responses.
mail_str += "I found your project at " +
encodedURL + "\n";
gives me the following result - any
ideas
^^^^^^^^^^^^^^^^
steve
----- Original Message -----
Sent: Monday, March 10, 2003 1:37
PM
Subject: [cfaussie] Re: _javascript_
syntax?
chr is a CF function, and needs to be within
<cfoutput> tags.
Also, convieniance should be convenience
:)
Phil
----- Original Message -----
Sent: Monday, March 10, 2003 2:31
PM
Subject: [cfaussie] _javascript_
syntax?
we are using a from mailer on a page to
identify a project in _javascript_ & it driving me nuts, i believe i
have to use a combination of Chr(13)&Chr(10) to induce a line break,
but im stuffed if i can get it to work
<script
language="_javascript_"> <!-- Begin function
mailpage() { encodedURL = escape(location.href);
mail_str = "mailto:#ent_Email#?subject= Tell me
more about your project"; mail_str += "&body= " ;
mail_str += "I found your project at " + encodedURL +
Chr(13)&Chr(10); mail_str += "Please contact me at your
convieniance to discuss this opportunity"; location.href =
"">} // End --> </script>
this produces body text
q:
how can i get it to look like
Please contact me at your convieniance to discuss this
opportunity
thanks
Steve Soars
www.i-redlands.net
Interactive Redlands Shop 2 Cleveland Town Square Cnr
Queen & Bloomfield Sts Cleveland QLD 4163
[p] 07 3821-5800 [f] 07
3821-5811
"what we do in
life echoes an eternity"
--- You are currently subscribed to cfaussie
as: [EMAIL PROTECTED] To unsubscribe send a blank email to
[EMAIL PROTECTED]
MX Downunder AsiaPac DevCon
- http://mxdu.com/ --- You are currently subscribed to
cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to
[EMAIL PROTECTED]
MX Downunder AsiaPac DevCon -
http://mxdu.com/ --- You are currently subscribed to cfaussie
as: [EMAIL PROTECTED] To unsubscribe send a blank email to
[EMAIL PROTECTED]
MX Downunder AsiaPac DevCon -
http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
|