Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-22-2002, 04:27 PM   PM User | #1
Jenny
New to the CF scene

 
Join Date: Jul 2002
Location: Tennessee
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Jenny is an unknown quantity at this point
Email page from Web

Question - I want to add something to a web page that I have designed. I want to give the person the ability to email the page that they are looking at. Most of the web sites that I have looked at bring up a form for you to enter an email address and then it sends the information. I would like to make a print screen of the web page in the body of the email for them to send to whomever. I would like when they select Email Page that it open the person's default email program. The information that we would be sending would be duynamic information and not static
Jenny is offline   Reply With Quote
Old 07-22-2002, 05:29 PM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
You will probably need to use a server-side language such as PHP to do that.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-22-2002, 07:59 PM   PM User | #3
neil.c
New Coder

 
Join Date: Jun 2002
Location: yorkshire, uk
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
neil.c is an unknown quantity at this point
maybe you could just send a link to the page?

using the persons default email it is quite easy (i think).

this kind of code:

window.location = "mailto:" + emailAddress + "&subject='come to this page'&body='" + window.location + "'"

you have to define the variable emailAddress (eg from a form). all this does is send an email with a link to the current page - maybe not what you're looking for. if you need to actually send the html content of a page in the email, you will probably need a server-side language. but this idea would work as a minimum.

lots of websites do have an 'email this page' form, i'll try to find out how this works.
__________________
neil.c
neil.c is offline   Reply With Quote
Old 07-22-2002, 08:02 PM   PM User | #4
Jenny
New to the CF scene

 
Join Date: Jul 2002
Location: Tennessee
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Jenny is an unknown quantity at this point
Thanks for the responses - any help is greatly appreciated.

jenny
Jenny is offline   Reply With Quote
Old 07-22-2002, 08:10 PM   PM User | #5
bacterozoid
Regular Coder

 
bacterozoid's Avatar
 
Join Date: Jun 2002
Location: USA
Posts: 486
Thanks: 23
Thanked 35 Times in 35 Posts
bacterozoid is an unknown quantity at this point
Well, instead of sending a 'Print screen' of the page, which would send only a picture of the monitor and be a large image, you could look for a way to send the HTML for your page through E-mail. If the person's E-mail program supports HTML email then they would see your web page - A link though would also work.
bacterozoid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:30 AM.


Advertisement
Log in to turn off these ads.