You'll either have to use script, or have "more" and "fewer" actually post the form via different actions.

When you post, you can use python code to add/remove fields to/from your form, seed the form again, and re-paint it.

If your page is light enough, it may not be a big deal to make the server round-trip.

We've done similar things just with CSS and a tiny tiny bit of script.

You can put about 10 form elements in there, but set their style to "display:none;" and then with script, you can set the relevant one in the DOM to "display:block;" as needed. It works ok.

CLIFFORD ILKAY wrote:


I am trying to design a search form that when the user clicks on a "More" button, the search fields will be duplicated and added. ...



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to