Need help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boellie

    Need help

    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.
  • VK

    #2
    Re: Need help

    > 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 ?
    [color=blue]
    > and puts that in a email to a specified adress.[/color]
    use mailto protocol:
    ....
    var txt = "Sample text to send";
    var email = "mailto:"+EMail +"?subject="+Su bject+"&body="+ escape(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.


    Comment

    • kaeli

      #3
      Re: Need help

      And on the day Fri, 7 Nov 2003 00:22:49 +0100, schools_ring@ya hoo.com
      enlightened us with <3faad7e6$0$156 77$9b622d9e@new s.freenet.de>.. .[color=blue]
      > ...
      >
      > Notice that all system support (or properly support) mailto protocol[/color]


      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.


      ------------------------------------------------

      Comment

      • VK

        #4
        Re: Need help

        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 <tiny_one@nospa m.comcast.net> wrote in message
        news:MPG.1a14a0 0bdea759e998968 2@news.comcast. giganews.com...[color=blue]
        > And on the day Fri, 7 Nov 2003 00:22:49 +0100, schools_ring@ya hoo.com
        > enlightened us with <3faad7e6$0$156 77$9b622d9e@new s.freenet.de>.. .[color=green]
        > > ...
        > >
        > > Notice that all system support (or properly support) mailto protocol[/color]
        >
        >
        > Unless, of course, the user isn't on their own computer (school,
        > library, internet cafe). Or the user doesn't have a default mail[/color]
        client[color=blue]
        > (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[/color]
        bad.[color=blue]
        > 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/
        > ------------------------------------------------[/color]


        Comment

        • kaeli

          #5
          Re: Need help

          And on the day Fri, 7 Nov 2003 09:20:44 +0100, schools_ring@ya hoo.com
          enlightened us with <3fab575d$0$193 63$9b622d9e@new s.freenet.de>.. .[color=blue]
          > Oops...
          >
          > "Notice that NOT all system support (or properly support) mailto
          > protocol"
          >
          > By context you can see that I was talking about limitations.[/color]

          Sorry, I jump all over those mailto posts. :)
          [color=blue]
          > Still mailto is an official documented protocol, not some proprietary
          > extension, so it can be used (wisely).
          >[/color]

          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.


          ------------------------------------------------

          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: Need help

            VK wrote:
            [color=blue]
            > "Notice that NOT all system support (or properly support) mailto
            > protocol"
            >
            > By context you can see that I was talking about limitations.[/color]

            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

            Comment

            Working...