Submitting form without submit button... 
Author Message
 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



Sat, 26 May 2001 03:00:00 GMT  
 Submitting form without submit button...
I believe you need to use:

Form1.Submit();


Quote:
>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



Sat, 26 May 2001 03:00:00 GMT  
 Submitting form without submit button...
Give that man a cigar.  Thanks Jeff.  Why isn't stuff like this documented
anywhere.  I've been seaching MSDN, technet, and the internet all day and
saw nothing to this affect.

Life is now good again,
Thanks,
Gary

Quote:

>I believe you need to use:

>Form1.Submit();



Sat, 26 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Submitting Form WITHOUT Submit Button

2. Submitting form without submit button...

3. What fires the submit action of a form without a submit button

4. Submitting Form WITHOUT a Submit Button

5. submit without submit button

6. SUBMIT form with 3 different submit buttons - error

7. form submits hrefs images and submit buttons

8. form submit using different submit buttons

9. SUBMIT form with 3 different submit buttons - error

10. Form entry without the use of the submit button

11. VBScript Newbie : Form Entry using a combo box without submit button

12. submit button to operate another submit button

 

 
Powered by phpBB® Forum Software