Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
HTML
HTML
<script type="text/javascript">
  function filter(field) {
    return field.name == "firstName";
  }
</script>

<form id="userData">
	  <label for="firstName">First Name</label>
	  <input type="textbox" id="firstName" name="firstName">
        <label for="lastName">Last Name</label>
	  <input type="textbox" id="lastName" name="lastName">
</form>
<s:div href="/AjaxTest.action" theme="ajax" formId="userData" formFilter="filter"/>

...

Code Block
HTML
HTML
<script type="text/javascript">
   function handler(widget, node) {
     alert('I will handle this myself!');
	     node.innerHTML = "Done";
   }
</script>

<s:div theme="ajax" href="/AjaxTest.action" handler="handler"/>