Question

Asked on 2000-06-07 at 09:07:32ID: 25439062

Submitting multiple forms

by: runel100

Rating7.4Very Good

Hi,

I've got the following situation:

In PL/SQL (Oracle) i build up a dynamic webpage with X forms (all called the same, which causes JavaScript to build an array, true?). I need to loop through all the forms and submit them (or some of them)..

Should the following work? :

<SCRIPT LANGUAGE=Javascript>
<!--
function submit()
{
  for ( var i=0,  n=document.cell.length;  i<n; i++ )
   {
    document.cell[i].submit
   }
}
//-->
</SCRIPT>

(Cell being the same of the form(s))

('Submit' will call an Oracle procedure, pass in the fields and update the database)

'submit' is called from a button on the buttom of the page.

If not, whats the best way to loop through all the forms and submit them? (Keep in mind it could be 1 form, and it could be 1000, so it needs to be dynamic).

Cheers,
Rune

Related Solutions

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution

View This Solution - Start Your 30 Day Free Trial
Zone
general
Tags
javascript
Participating Experts
3
Solution Grade
A

Replies

 by: bark10

Posted on 2000-06-07 at 10:44:16ID: 28112080

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: kg_bang

Posted on 2000-06-07 at 11:04:06ID: 28112081

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: TTom

Posted on 2000-06-07 at 11:19:02ID: 28112082

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: kg_bang

Posted on 2000-06-07 at 11:27:32ID: 28112083

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: runel

Posted on 2000-06-07 at 12:14:47ID: 28112084

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: runel

Posted on 2000-06-07 at 12:21:01ID: 28112085

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: kg_bang

Posted on 2000-06-07 at 12:22:21ID: 28112086

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: kg_bang

Posted on 2000-06-07 at 12:31:31ID: 28112087

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: kg_bang

Posted on 2000-06-07 at 12:36:36ID: 28112088

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: runel

Posted on 2000-06-07 at 15:26:23ID: 28112089

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: kg_bang

Posted on 2000-06-07 at 15:35:49ID: 28112090

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: runel

Posted on 2000-06-08 at 02:25:22ID: 28112091

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: runel

Posted on 2000-06-08 at 02:26:35ID: 28112092

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

  1. mplungjan

    1,840

    0 points yesterday

    Profile

BrowseAre you an Expert?