Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-11-2008, 12:13 AM   #1
Banned
 
Join Date: Oct 2008
Location: UK
Posts: 13
Thanks: 0
Thanked 2 Times in 1 Post
Default javaccript code

Hello everybody

This is lucy smith, new to this forum as well as javascript, i am trying to write code to send an email using javascript but was enable to do it and also a vertical scroll bar moving up code i need urgently, kindly help me either providing code or provide me source from source from where i can get it
Lucysmith is offline   Reply With Quote
Old 10-13-2008, 09:17 PM   #2
Advanced Warrior
 
Amsterdam's Avatar
 
Join Date: Jun 2005
Location: Wirral, UK
Posts: 691
Thanks: 2
Thanked 4 Times in 3 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: javaccript code

JavaScript is a client side scripting language. Sending email from a Website requires a server side language such as PHP.

Hope this helps,

T

Web Design Wirral - Web Design, Hosting & Development from TDL Web Developments
Amsterdam is offline   Reply With Quote
Old 10-14-2008, 10:21 AM   #3
Advanced Warrior
War Room Member
 
Sean Kelly's Avatar
 
Join Date: Oct 2006
Location: Ireland
Posts: 750
Thanks: 5
Thanked 34 Times in 24 Posts
Contact Info
Send a message via Yahoo to Sean Kelly Send a message via Skype™ to Sean Kelly
Default Re: javaccript code

You do not need Javascript to do that you want.

Simply include a mailto link in your page and when the user clicks on it their email client is automatically opened with the 'to' field automatically prefilled.

Example:
Code:
<a href="mailto:you@somedomain.com">contact us</a>
You must make sure to encode the email address so that bots and webpage scrapers do not harvest your email address for spamming. This is VERY important.

Try this:
Encrypt mailto-email links

Sean

http://www.ViralPDF.com - The #1 PDF Rebrander since 2002
http://www.PdfPrinterPro.com - Create PDFs with Audio, Video and Flash inside
http://www.PdfLocker.com - Lock & Encrypt your PDFs quickly & easily
Sean Kelly is offline   Reply With Quote
Old 10-15-2008, 03:54 PM   #4
Warrior Member
 
rirara's Avatar
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Default Re: javaccript code

You can't send email with javascript, it is a client side language. Use php instead.

rirara is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
code, javaccript

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 09:36 AM.