BobinPDX,
Here's the way I got 'round the limitations. I had a bunch of variables I wanted people to send. In this case, it was filling out a form and having it e-mail the data to me.
I found this solution somewhere and maybe it'll help you. Note that it requires two forms and one small external .js file...
First, this document:
Code:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<title>Send Out The Data</title>
<link rel="stylesheet" href="Style.css" type="text/css"></link>
<script src="sample.js" type="text/javascript"></script>
</head>
<body>
<h3>Submissions Form</h3>
<form name="SubmissionForm" action="mailto:HungryMan@DonnerParty.com" enctype="multipart/form-data">
<table class="Fatscope">
<tr>
<td class="DescriptorCell">Function Name:</td>
<td class="ContentCell"><input type="text" size="100" id="FunctionName"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Module which contains Function:</td>
<td class="ContentCell"><input type="text" size="100" id="ModuleName"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Module Location:</td>
<td class="ContentCell"><input type="text" size="100" id="ModuleLocation"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Function Description:</td>
<td class="ContentCell"><textarea cols="75" rows="5" id="FunctionDescription"></textarea></td>
</tr>
<tr>
<td class="DescriptorCell">Function Parameters:</td>
<td class="ContentCell"><input type="text" size="100" id="FunctionParameters"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Function Example Call:</td>
<td class="ContentCell"><input type="text" size="100" id="FunctionExample"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Programmer Name:</td>
<td class="ContentCell"><input type="text" size="100" id="ProgrammerName"></input></td>
</tr>
</table>
<p class="CenteredContent"><input type="reset" value="Clear All Entries" class="PDButton"></input></p>
</form>
<form name="ProxyForm" enctype="text/plain" method="post" action ="mailto:HungryMan@DonnerParty.com?subject=Reuseable Code Library Submission" onsubmit="update_message_body();return true;">
<p class="CenteredContent"><input type="submit" value="Submit New Function" class="PDButton"></input></p>
<input type="hidden" id="MessageBody" name="MessageBody"></input>
</form>
</body>
</html>
Obviously, this uses an external stylesheet called "Style.css", which you can tell from the class calls, but don't let that bother you -- it's just things like background colors, etc. Also, it should be obvious that I trimmed away a bunch of content that is proprietary, but again, it shouldn't be a problem.
Here's the external JavaScript file, which should be saved as "sample.js":
Code:
function update_message_body()
// This function composes an e-mail message using the contents of
// another form on the same page.
{
var FunctionName = document.SubmissionForm.FunctionName.value;
var ModuleName = document.SubmissionForm.ModuleName.value;
var ModuleLocation = document.SubmissionForm.ModuleLocation.value;
var FunctionDescription = document.SubmissionForm.FunctionDescription.value;
var FunctionParameters = document.SubmissionForm.FunctionParameters.value;
var FunctionExample = document.SubmissionForm.FunctionExample.value;
var ProgrammerName = document.SubmissionForm.ProgrammerName.value;
var CurrentDate = new Date();
document.ProxyForm.MessageBody.value = "\n\n" + "-= Start of Message =-" + "\n\n"
+ "Reuseable Code Library Submission" + "\n\n"
+ "Time received: " + CurrentDate + "\n\n"
+ "Function Name: " + FunctionName + "\n\n"
+ "Module Name: " + ModuleName + "\n\n"
+ "Module Location: " + ModuleLocation + "\n\n"
+ "Function Description: " + FunctionDescription + "\n\n"
+ "Function Parameters: " + FunctionParameters + "\n\n"
+ "Function Example Call: " + FunctionExample + "\n\n"
+ "Submitted by: " + ProgrammerName + "\n\n" + "-= End of Message =-";
return true;
}
Sends all that junk in e-mail, neat as you please.
The tiniest caveat is that the browser -- depending upon your security settings -- pops up a warning that you are about to send e-mail via the web page.
I have
not tested this in anything other than IE, as this client insisted on using only IE on all their machines.
Good luck!
Edward "Do not read this sentence."