Re: Best design? Nested forms as a result of desired page layout...
Re: Best design? Nested forms as a result of desired page layout...
- Subject: Re: Best design? Nested forms as a result of desired page layout...
- From: LD <email@hidden>
- Date: Sun, 10 Jul 2005 16:16:34 +1000
Hi there,
On 10/07/2005, at 2:15 AM, Ondra Cada wrote:
my client would like to have something like the following page
layout (this one is considerably simplified to point out the gist
of the problem):
<table of something with checkboxes>
<a few searchfields>
<submit button for the checkboxes>
Simplest solution - that will work in various browsers... tie the
submit button (via onClick) to a javascript function that will submit
the checkbox form.
---YourComponent.wod---
CheckBoxesForm: WOForm {
action = actionToSubmitForCheckboxes;
id = "CheckBoxesForm";
}
CheckBoxesFormName: WOString {
value = "CheckBoxesForm";
}
SearchFieldsForm: WOForm {
action = actionToSubmitForSearchFields;
id = "SearchFieldsForm";
}
---YourComponent.html---
<html>
<head>
<...>
<script type='text/javascript'>
<!--
function submitCheckBoxesForm() {
var checkBoxesForm = document.getElementById('<webobject
name=CheckBoxesFormName></webobject>');
checkBoxesForm.submit();
}
-->
</script>
</head>
<body>
<!-- CHECKBOXES TABLE -->
<table>
<...>
</table>
<!-- SEARCH FIELDS -->
<!-- Submit Button Outside of any Form but placed where you
like -->
<input type="reset" value="Submit Checked Values"
onClick="submitCheckBoxesForm();"></input>
</body>
</html>
with regards,
--
LD
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden