• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to send the contents of a screen in an email

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello! Is there a javascript wizard out there who can advise me how to capture the contents of a screen and include it as the body of an email to a specified email address?
Thanx much!!
Joan Fisher
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Send the link.....get an email client that allows HTML to be viewed....goto view source on the web poage, copy it paste it into the email....save the page, zip it and send it to the person
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
joan,
your question is a little vague. if you want to send it yourself, you can do any of the things Al said. i would use the print scrn key, change it to a jpeg(using MS paint) then attach it to the email. if you want a program to do it for you, i dont know how.
[ September 13, 2002: Message edited by: Randall Twede ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you posted this in the "HTML and JavaScript" forum, I'm assuming you aren't wanting to get involved with server-side Java to accomplish this?
(If that assumption is incorrect, check out java.net.URLConnection and the JavaMail API).
bear
 
joan frances fisher
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Its Joan Again...Sorry I was so vague...
What I am trying to accomplish exactly is for the user of my intranet application to be able to click on a button that will invoke the javascript
NewMail object and to somehow (I know not how)
have the body attribute of this email message automatically set to the contents of the current screen (where the button was located). My average user is far from computer/web savvy and wouldn't be willing or able to cut or paste into the body field of the NewMail object...
Hope that is more clear....This may be a pipe dream...but it is worth asking!!
Thanx!
 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
function snapShot(){
return document.getElementsByTagName("html")[0].outerHTML;
}
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i was just thinking the same thing, since I am working with a search script for a page and using innerHTML....I see that someone beat me to it...lol
 
joan frances fisher
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Brilliant! Thanx a ton!!
 
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic