HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 31st, 2000, 01:21 AM
ravi_kiruba ravi_kiruba is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 2 ravi_kiruba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<body>
<form name="StatusReport" action="mailto:reswaran@cisco.com?subject=test&bcc=ssivasha@cisco.com&body=document.StatusReport.elements[0].value">
<textarea name="comments" rows=10 columns=15 wrap="physical">
</textarea>
<input type="submit" value="Send Mail">
</form>


Moreover... Whatcan I do if I need to sedn the content of two text area in a single mail.Please clarify both the doubts

Regards
Ravikumar Eswaran.
</body>

Reply With Quote
  #2  
Old October 31st, 2000, 10:05 AM
mmonks mmonks is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 27 mmonks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Not sure about the second part of your question but your code is not working because you've got document.StatusReport.elements[0].value
within a string value.

You'll need to add some javascript -

<script language="javascript">

function sendForm(){
var form_action = "mailto:reswaran@cisco.com?subject=test&bcc=ssivasha@cisco.com&body=" + document.StatusReport.elements[0].value;
document.StatusReport.action = form_action;
document.StatusReport.submit();
}
</script>

Then, replace your submit button with a normal button like this -

<input type="button" value="Send Mail" onclick="sendForm();">

and finally, get rid of the action attribute within your form tag.

That should work!
Matt.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Why the following code doesn't work?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT