
Submitting form without submit button...
This should be a straight forward solution, but I'll be damned if I can
figure out what is going on. I have a menu selection in which a user
'hovers' over the selection of empty Anchors. By empty I mean they have not
HREF inside. I'm relying on event processing to give me the control over
what happens when the user clicks one of the selections. In the example
below I use the OnClick event in the ANCHOR to direct me to the Launch
function. However, the corresponding Action is not occurring when the
FORM1.submit is execute. However, if the user subsequently hits a Submit
button which is also on this form then the action setup in launch executes.
How do I get the submit to execute in my Launch function like it does when
the user hits the submit button?
function Launch(selection) {
var retcode = false;
switch (selection)
{
case 0:
{
top.document.all("FrameSet").rows=("50%,50%,0%");
FORM1.action="Balances.asp";
FORM1.target="AppFrame";
FORM1.submit;
retcode=true;
break;
}
case 1:
....(Etc.)....
<table>
<tr>
<td><form id="FORM1" method="post" name="form1">
<a onmouseover="msover(1,3,4);" onmouseout="msout(1,3,4);"
onclick="Launch(0);">
</td>
</tr>
</table>
Thanks,
Gary