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]
|