click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r956356 - in /click/trunk/click/examples/src/org/apache/click/examples/page: form/ExtraControlsForm.java form/StandardControlsForm.java form/dynamic/DynamicSelect.java table/TableStyles.java
Date Sun, 20 Jun 2010 13:32:56 GMT
Author: sabob
Date: Sun Jun 20 13:32:56 2010
New Revision: 956356

URL: http://svn.apache.org/viewvc?rev=956356&view=rev
Log:
onchange JS event doens't work in IE. use onclick instead.

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicSelect.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java?rev=956356&r1=956355&r2=956356&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
Sun Jun 20 13:32:56 2010
@@ -102,9 +102,9 @@ public class ExtraControlsForm extends B
 
         // Settings Form
         FieldSet fieldSet = new FieldSet("options", "Form Options");
-        allFieldsRequired.setAttribute("onchange", "optionsForm.submit();");
+        allFieldsRequired.setAttribute("onclick", "form.submit();");
         fieldSet.add(allFieldsRequired);
-        jsValidate.setAttribute("onchange", "optionsForm.submit();");
+        jsValidate.setAttribute("onclick", "form.submit();");
         fieldSet.add(jsValidate);
         optionsForm.add(fieldSet);
         optionsForm.setListener(this, "onOptionsSubmit");

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java?rev=956356&r1=956355&r2=956356&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
Sun Jun 20 13:32:56 2010
@@ -112,9 +112,9 @@ public class StandardControlsForm extend
 
         // Settings Form
         fieldSet = new FieldSet("options", "Form Options");
-        allFieldsRequired.setAttribute("onchange", "optionsForm.submit();");
+        allFieldsRequired.setAttribute("onclick", "form.submit();");
         fieldSet.add(allFieldsRequired);
-        jsValidate.setAttribute("onchange", "optionsForm.submit();");
+        jsValidate.setAttribute("onclick", "form.submit();");
         fieldSet.add(jsValidate);
         optionsForm.add(fieldSet);
         optionsForm.setListener(this, "onOptionsSubmit");

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicSelect.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicSelect.java?rev=956356&r1=956355&r2=956356&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicSelect.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicSelect.java
Sun Jun 20 13:32:56 2010
@@ -31,7 +31,7 @@ import org.apache.click.extras.control.D
 import org.apache.click.util.ClickUtils;
 
 /**
- * Demonstrates dynamic Form behaviour using a Select control.
+ * Demonstrates dynamic Form behavior using a Select control.
  */
 public class DynamicSelect extends BorderPage {
 
@@ -69,9 +69,9 @@ public class DynamicSelect extends Borde
         form.add(select);
 
         // The Click script, '/click/control.js', provides the JavaScript
-        // function Click.submit(formName, validate). To bypass validation
+        // function Click.submit(form, validate). To bypass validation
         // specify 'false' as the second argument.
-        select.setAttribute("onchange", "Click.submit(dynamicForm, false)");
+        select.setAttribute("onchange", "Click.submit(form, false)");
 
         form.add(submit);
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java?rev=956356&r1=956355&r2=956356&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java Sun
Jun 20 13:32:56 2010
@@ -65,12 +65,12 @@ public class TableStyles extends BorderP
         form.setLabelAlign(Form.ALIGN_LEFT);
 
         styleSelect.addAll(Table.CLASS_STYLES);
-        styleSelect.setAttribute("onchange", "this.form.submit();");
+        styleSelect.setAttribute("onchange", "form.submit();");
         form.add(styleSelect);
 
         form.add(new Label("   "));
 
-        hoverCheckbox.setAttribute("onchange", "this.form.submit();");
+        hoverCheckbox.setAttribute("onclick", "form.submit();");
         form.add(hoverCheckbox);
 
         // Setup customers table



Mime
View raw message