You are here: Re: Send to A Friend And Java Problem « HTML « IT news, forums, messages
Re: Send to A Friend And Java Problem

Posted by Toby Inkster on 06/24/05 12:35

Steve Horrillo wrote:

> I can't figure out why this script won't insert the subject in the email
[snip]
> if(isPPC()) {
> document.write('<b>Send <A CLASS="contact" HREF=\"mailto:\?subject\=Take a
[snip]
> }
> else { document.write('<b>Send <A CLASS="contact" HREF=\"mailto:\?body\=Take
[snip]
> }

The "else" part of the script doesn't try to set a subject line -- it only
tries to set a body.

So unless your browser contains "PPC" in its user-agent string (which I
think only some old versions of Internet Explorer for Mac do), you will
get an empty subject line.

It's a stupid script anyway. You should be doing this server-side.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация