PDA

View Full Version : Large forms


Exodious
08-16-2002, 05:33 PM
I had a (large) form with say 10 entries per row and 400 rows.
To speed things up, I've read the data for the 400 rows into arrays (1 array for each of the 10 entries) and
now only show 50 lines at a time. The user chooses between the pages of 50 using buttons and javascript is used to populate the page from the array cache. (a bit like opening a database recordset and only displaying the pagesize)

My problem comes with submitting the form. I don't have enough form elements to submit the form in one go.
Does anyone have any ideas on the best way to submit (using the post method) a form like this?

Thanks

beetle
08-16-2002, 05:39 PM
Well, javascript can't access POSTDATA directly...so, not sure what you can do. It sounds like you are already using ASP or something for the data that populates the forms. Why not go with a server-side solution. I can already think of how to do this with PHP....

Borgtex
08-16-2002, 08:30 PM
I don't understant the question very well, but I think that a good solution can be generate (with scripting) as many hidden fields as you need.

Exodious
08-19-2002, 09:16 AM
We are using JSP at the moment, but the problem is, drawing 400 hidden form fields will still take a long time... too long

Beetle, what kind of server solution do you suggest?

beetle
08-19-2002, 05:08 PM
Check out the full text of this post (http://www.sitepointforums.com/showthread.php?s=&threadid=70659&highlight=bored) and see if that sheds any light.