How to make a Tell-A-Friend ?

A

Ashraf

Is it possible to design a tell-a-friend form using frontpage? because i
checked the interner and it seems it can not be done using front page .. also
what about a Newsletter subscrition form ?

Thank you
 
T

Thomas A. Rowe

Sent To Friend: Not possible when using the FP Form Handler which can only send to an email address
that has been hard coded into the form.

Newsletter Subscription: Depends on what you want to happen with the data.



--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Trevor L.

A very simple way to mail the URL of the parent page (in case the sender is
somewhere else on the site) to another is:

<form id="eMailer" name="eMailer" action="">
E-Mail this page as link&nbsp;&nbsp;Enter recipient's e-mail:<br />
<input type="text" id="address" name="address" size="30" />
<input type="button" value="Send" style="cursor:hand"
onclick="mailThisUrl()" />
</form>
with this JS:

function mailThisUrl()
{
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var thispage = parent.location.href
var content = "mailto:"
+ document.forms['eMailer'].elements['address'].value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ parent.document.title
+ " (" + thispage + ")"
window.location = content
}

The form could be expanded to include the subject and the text
e.g. add <input type="text" id="subj" name="subj" size="30" /> to the form
and in the JS, change subj to
document.forms['eMailer'].elements['subj'].value

Ashraf,
Is this what you looking for ?
 
J

jack.murphy

Ashraf,

Check out www.Deliverent.com for a free, no limit send-to-friend button
that you can deploy for your entire site.

Deliverent's send-to-friend technology is very powerful because it
allows the sender to email your entire web page to their friend. It
also comes with a secure address book. Deliverent creates the
Send-to-friend button for you in pure HTML/JavaScript code, so you can
integrate with any environment.

You can also see Deliverent's technology in action at www.jkn.com
(JumpKnowledge) which is the world's first and only web-based "web-page
emailer".

Jack
 
A

Ashraf

So basically i have to pase this in the FP HTML editor ?

Peace

Trevor L. said:
A very simple way to mail the URL of the parent page (in case the sender is
somewhere else on the site) to another is:

<form id="eMailer" name="eMailer" action="">
E-Mail this page as link Enter recipient's e-mail:<br />
<input type="text" id="address" name="address" size="30" />
<input type="button" value="Send" style="cursor:hand"
onclick="mailThisUrl()" />
</form>
with this JS:

function mailThisUrl()
{
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var thispage = parent.location.href
var content = "mailto:"
+ document.forms['eMailer'].elements['address'].value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ parent.document.title
+ " (" + thispage + ")"
window.location = content
}

The form could be expanded to include the subject and the text
e.g. add <input type="text" id="subj" name="subj" size="30" /> to the form
and in the JS, change subj to
document.forms['eMailer'].elements['subj'].value

Ashraf,
Is this what you looking for ?
Sent To Friend: Not possible when using the FP Form Handler which can
only send to an email address that has been hard coded into the form.

Newsletter Subscription: Depends on what you want to happen with the
data.
 
T

Trevor L.

Ashraf said:
So basically i have to pase this in the FP HTML editor ?

Peace

Yes, Ashraf
In the <head> section paste this
<script type ="text/javascript">
function mailThisUrl()
{
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var thispage = parent.location.href
var content = "mailto:"
+ document.forms['eMailer'].elements['address'].value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ parent.document.title
+ " (" + thispage + ")"
window.location = content
}
</script>

Into the <body> section, paste the other code
<form id="eMailer" name="eMailer" action="">
E-Mail this page as link Enter recipient's e-mail:<br />
<input type="text" id="address" name="address" size="30" />
<input type="button" value="Send" style="cursor:hand"
onclick="mailThisUrl()" />
</form>

Of course, modify it if you need something a little different
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top