• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send the contents of a screen in an email

 
joan frances fisher
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • 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
 
Randall Twede
Ranch Hand
Posts: 4439
3
Java
  • Mark post as helpful
  • send pies
  • 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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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!
 
Charlie Sturman
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
function snapShot(){
return document.getElementsByTagName("html")[0].outerHTML;
}
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Brilliant! Thanx a ton!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic