Ticket #6654: dojox.wire.demos_20080430.patch

File dojox.wire.demos_20080430.patch, 7.8 kB (added by jaredj, 8 months ago)
  • wire/demos/markup/demo_ActionWiring.html

     
    7676                                                <div dojoType="dijit.form.Button" jsId="searchButton">Search Datastore</div> 
    7777                                        </td> 
    7878                                        <td align="right"> 
    79                                                 <div dojoType="dijit.form.TextBox" jsId="inputField" value="*"></div> 
     79                                                <div dojoType="dijit.form.TextBox" jsId="inputField" value="*" intermediateChanges="true"></div> 
    8080                                        </td> 
    8181                                </tr> 
    8282                        </table> 
     
    112112                object.  The copy of values to the search should occur on each keyup event (each keypress) 
    113113         --> 
    114114        <div dojoType="dojox.wire.ml.Transfer" 
    115                 trigger="inputField" triggerEvent="onkeyup" 
     115                trigger="inputField" triggerEvent="onChange" 
    116116                source="inputField.textbox.value"  
    117117                target="dataHolder.request.query.name"> 
    118118        </div> 
  • wire/demos/markup/demo_ActionChaining.html

     
    4646        <table> 
    4747                <tr> 
    4848                        <td> 
    49                                 <div dojoType="dijit.form.TextBox" id="inputField" value="" size="50"></div> 
     49                                <div dojoType="dijit.form.TextBox" id="inputField" value="" size="50" intermediateChanges="true"></div> 
    5050                        </td> 
    5151                </tr> 
    5252                <tr> 
     
    8484        <div dojoType="dojox.wire.ml.Action" 
    8585                id="action1" 
    8686                trigger="inputField" 
    87                 triggerEvent="onkeyup"> 
     87                triggerEvent="onChange"> 
    8888                <div dojoType="dojox.wire.ml.Invocation" object="inputField"    method="getValue" result="data.tempData"></div> 
    8989                <div dojoType="dojox.wire.ml.Invocation" id="targetCopy" object="targetField1"  method="setValue" parameters="data.tempData"></div> 
    9090        </div>     
  • wire/demos/markup/demo_TopicWiring.html

     
    4747        <table> 
    4848                <tr> 
    4949                        <td> 
    50                                 <div dojoType="dijit.form.TextBox" jsId="inputField" value="" size="50"></div> 
     50                                <div dojoType="dijit.form.TextBox" jsId="inputField" value="" size="50" intermediateChanges="true"></div> 
    5151                        </td> 
    5252                </tr> 
    5353                <tr> 
     
    6666        <div dojoType="dojox.wire.ml.Action" 
    6767                id="action1" 
    6868                trigger="inputField" 
    69                 triggerEvent="onkeyup"> 
     69                triggerEvent="onChange"> 
    7070                <div dojoType="dojox.wire.ml.Invocation" topic="sampleTopic"    parameters="inputField.value"></div> 
    7171        </div>     
    7272 
  • wire/demos/markup/demo_ConditionalActions.html

     
    7272 
    7373                <tr> 
    7474                        <td> 
    75                                 <b>Name:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingName" name="billingname" value=""  size="50"></div> 
     75                                <b>Name:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingName" name="billingname" value=""  size="50" intermediateChanges="true"></div> 
    7676                        </td> 
    7777                        <td> 
    7878                                <b>Name:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="ShippingName" name="shippingname" value="" disabled="true" size="50"></div> 
     
    8080                </tr> 
    8181                <tr> 
    8282                        <td> 
    83                                 <b>Address 1:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingAddress1" name="billingaddress1" value=""  size="50"></div> 
     83                                <b>Address 1:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingAddress1" name="billingaddress1" value=""  size="50" intermediateChanges="true"></div> 
    8484                        </td> 
    8585                        <td> 
    8686                                <b>Address 1:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="ShippingAddress1" name="shippingaddress1" value="" disabled="true" size="50"></div> 
     
    8888                </tr> 
    8989                <tr> 
    9090                        <td> 
    91                                 <b>Address 2:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingAddress2" name="billingaddress2" value=""  size="50"></div> 
     91                                <b>Address 2:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingAddress2" name="billingaddress2" value=""  size="50" intermediateChanges="true"></div> 
    9292                        </td> 
    9393                        <td> 
    9494                                <b>Address 2:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="ShippingAddress2" name="shippingaddress2" value="" disabled="true" size="50"></div> 
     
    9696                </tr> 
    9797                <tr> 
    9898                        <td> 
    99                                 <b>City:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingCity" name="billingcity" value=""  size="50"></div> 
     99                                <b>City:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingCity" name="billingcity" value=""  size="50" intermediateChanges="true"></div> 
    100100                        </td> 
    101101                        <td> 
    102102                                <b>City:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="ShippingCity" name="shippingcity" value="" disabled="true" size="50"></div> 
     
    112112                </tr> 
    113113                <tr> 
    114114                        <td> 
    115                                 <b>Zip code:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingZip" name="billingzip" value=""  size="50"></div> 
     115                                <b>Zip code:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="BillingZip" name="billingzip" value=""  size="50" intermediateChanges="true"></div> 
    116116                        </td> 
    117117                        <td> 
    118118                                <b>Zip code:</b> <div class="rJustified" dojoType="dijit.form.TextBox" id="ShippingZip" name="shippingzip" value="" disabled="true" size="50"></div> 
     
    140140        --> 
    141141        <div dojoType="dojox.wire.ml.Action" 
    142142                trigger="useSameAddress" 
    143                 triggerEvent="setChecked"> 
     143                triggerEvent="onChange"> 
    144144                <!-- 
    145145                        Trigger a setting of the Shipping fields' input state based on the state of the checkbox. 
    146146                --> 
     
    157157        --> 
    158158        <div dojoType="dojox.wire.ml.Action" 
    159159                trigger="BillingName" 
    160                 triggerEvent="onkeyup"> 
     160                triggerEvent="onChange"> 
    161161                <div dojoType="dojox.wire.ml.ActionFilter" required="useSameAddress.checked" requiredValue="true" type="boolean"></div>         
    162162                <div dojoType="dojox.wire.ml.Transfer" source="BillingName.value" target="ShippingName.value"></div> 
    163163        </div>     
    164164        <div dojoType="dojox.wire.ml.Action" 
    165165                trigger="BillingAddress1" 
    166                 triggerEvent="onkeyup"> 
     166                triggerEvent="onChange"> 
    167167                <div dojoType="dojox.wire.ml.ActionFilter" required="useSameAddress.checked" requiredValue="true" type="boolean"></div>         
    168168                <div dojoType="dojox.wire.ml.Transfer" source="BillingAddress1.value" target="ShippingAddress1.value"></div> 
    169169        </div>     
    170170        <div dojoType="dojox.wire.ml.Action" 
    171171                trigger="BillingAddress2" 
    172                 triggerEvent="onkeyup"> 
     172                triggerEvent="onChange"> 
    173173                <div dojoType="dojox.wire.ml.ActionFilter" required="useSameAddress.checked" requiredValue="true" type="boolean"></div>         
    174174                <div dojoType="dojox.wire.ml.Transfer" source="BillingAddress2.value" target="ShippingAddress2.value"></div> 
    175175        </div> 
    176176        <div dojoType="dojox.wire.ml.Action" 
    177177                trigger="BillingCity" 
    178                 triggerEvent="onkeyup"> 
     178                triggerEvent="onChange"> 
    179179                <div dojoType="dojox.wire.ml.ActionFilter" required="useSameAddress.checked" requiredValue="true" type="boolean"></div>         
    180180                <div dojoType="dojox.wire.ml.Transfer" source="BillingCity.value" target="ShippingCity.value"></div> 
    181181        </div>     
     
    188188 
    189189        <div dojoType="dojox.wire.ml.Action" 
    190190                trigger="BillingZip" 
    191                 triggerEvent="onkeyup"> 
     191                triggerEvent="onChange"> 
    192192                <div dojoType="dojox.wire.ml.ActionFilter" required="useSameAddress.checked" requiredValue="true" type="boolean"></div>         
    193193                <div dojoType="dojox.wire.ml.Transfer" source="BillingZip.value" target="ShippingZip.value"></div> 
    194194        </div>     
     
    200200        --> 
    201201        <div dojoType="dojox.wire.ml.Action" 
    202202                trigger="useSameAddress" 
    203                 triggerEvent="setChecked"> 
     203                triggerEvent="onChange"> 
    204204                <div dojoType="dojox.wire.ml.ActionFilter" required="arguments[0]" requiredValue="true" type="boolean"></div>         
    205205 
    206206                <!--