By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,311 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Need help

P: n/a
Please can somebody help me ?
I'm looking for a javascript which will take a specified part text
from a website and puts that in a email to a specified adress.
Does anybody know if something like this allready exists, and if so
where can i find it ?

Thanks in advance for any answers.
Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
VK
> take a specified part text from a website
google for JavaScript Range object and its properties
depends on where are you taking the text from: from the selection, from
a named paragraph, from ?
and puts that in a email to a specified adress.

use mailto protocol:
....
var txt = "Sample text to send";
var email = "mailto:"+EMail+"?subject="+Subject+"&body="+escap e(txt);
window.location.href =email;
....

Notice that all system support (or properly support) mailto protocol
Also most of the systems has security limitations on length and content
of the auto-generated body.
Generally you limit is 127 character long plain text body.
Jul 20 '05 #2

P: n/a
And on the day Fri, 7 Nov 2003 00:22:49 +0100, sc**********@yahoo.com
enlightened us with <3f***********************@news.freenet.de>...
...

Notice that all system support (or properly support) mailto protocol

Unless, of course, the user isn't on their own computer (school,
library, internet cafe). Or the user doesn't have a default mail client
(they use Netscape browser with Outlook mail and didn't set it up, or
they just don't use Outlook, they use a web based mail). Or the user
prefers to use their web address, such as yahoo. Or the user uses Unix
with a windows emulator and Exchange to download their mail to a text
file so they can use pine or mailx...
I can think of 5 people I know off the top of my head who don't use a
default mail client. I can think of ~120 at my work who use Unix pine.

I could come up with lots more reasons why mailto is really, really bad.
Get a server-side script.

--------------------------------------------------
~kaeli~
Winerr 01C - Wrong Disk Formatted. Sorry About That.
Winerr 01D - Enter any 11-digit prime number to continue.
http://www.ipwebdesign.net/wildAtHeart/
http://www.ipwebdesign.net/kaelisSpace/
------------------------------------------------
Jul 20 '05 #3

P: n/a
VK
Oops...

"Notice that NOT all system support (or properly support) mailto
protocol"

By context you can see that I was talking about limitations.
Still mailto is an official documented protocol, not some proprietary
extension, so it can be used (wisely).

kaeli <ti******@nospam.comcast.net> wrote in message
news:MP************************@news.comcast.gigan ews.com...
And on the day Fri, 7 Nov 2003 00:22:49 +0100, sc**********@yahoo.com
enlightened us with <3f***********************@news.freenet.de>...
...

Notice that all system support (or properly support) mailto protocol

Unless, of course, the user isn't on their own computer (school,
library, internet cafe). Or the user doesn't have a default mail

client (they use Netscape browser with Outlook mail and didn't set it up, or
they just don't use Outlook, they use a web based mail). Or the user
prefers to use their web address, such as yahoo. Or the user uses Unix
with a windows emulator and Exchange to download their mail to a text
file so they can use pine or mailx...
I can think of 5 people I know off the top of my head who don't use a
default mail client. I can think of ~120 at my work who use Unix pine.

I could come up with lots more reasons why mailto is really, really bad. Get a server-side script.

--------------------------------------------------
~kaeli~
Winerr 01C - Wrong Disk Formatted. Sorry About That.
Winerr 01D - Enter any 11-digit prime number to continue.
http://www.ipwebdesign.net/wildAtHeart/
http://www.ipwebdesign.net/kaelisSpace/
------------------------------------------------

Jul 20 '05 #4

P: n/a
And on the day Fri, 7 Nov 2003 09:20:44 +0100, sc**********@yahoo.com
enlightened us with <3f***********************@news.freenet.de>...
Oops...

"Notice that NOT all system support (or properly support) mailto
protocol"

By context you can see that I was talking about limitations.
Sorry, I jump all over those mailto posts. :)
Still mailto is an official documented protocol, not some proprietary
extension, so it can be used (wisely).


Wisely, yes, but I see it used way too much. I use it for my intranet
sites where I know what everyone has, but knowing what I know now, I'd
never use it for an internet site that was able to be accessed by
everyone.
--------------------------------------------------
~kaeli~
Winerr 01C - Wrong Disk Formatted. Sorry About That.
Winerr 01D - Enter any 11-digit prime number to continue.
http://www.ipwebdesign.net/wildAtHeart/
http://www.ipwebdesign.net/kaelisSpace/
------------------------------------------------
Jul 20 '05 #5

P: n/a
VK wrote:
"Notice that NOT all system support (or properly support) mailto
protocol"

By context you can see that I was talking about limitations.


You wrote only about security and length limitations. Alas, you still miss
the point. That an HTTP user agent an a mail user agent, if installed, do
not work well together using the `mailto:' URI scheme (it is _not_ a
protocol!), is neither one and is definitely not a support issue of
(operating) systems.
PointedEars
Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.