• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best design? Nested forms as a result of desired page layout...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Best design? Nested forms as a result of desired page layout... (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Old WOBuilder Lives!
  • Next by Date: Re: Old WOBuilder Lives!
  • Previous by thread: Re: Best design? Nested forms as a result of desired page layout...
  • Next by thread: Components subclass with log4j Logger
  • Index(es):
    • Date
    • Thread