diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2013-11-26 03:01:40 -0800 |
---|---|---|
committer | ctrlaltca <ctrlaltca@gmail.com> | 2013-11-26 03:01:40 -0800 |
commit | a4e4839d9f09d27b6f0cba92fad0231632b3a04d (patch) | |
tree | 2a2f353f2f7b0fd6cde035068a2036ab630f688b /demos/quickstart/protected/pages | |
parent | 2b11341614ac4a15be697fa8acad07055154ac54 (diff) | |
parent | 65adcbec2cc9a00a5b0611e34c7141bf4e6d63f7 (diff) |
Merge pull request #491 from pradosoft/jquery
Main development switch to Jquery
Diffstat (limited to 'demos/quickstart/protected/pages')
4 files changed, 19 insertions, 14 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page index e38486d1..79a4f540 100755 --- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page @@ -15,10 +15,10 @@ Go to page: OnCallBack="RenderCallback" > <prop:ClientSide.OnLoading> - Element.show('wait') + jQuery('#wait').show() </prop:ClientSide.OnLoading> <prop:ClientSide.OnComplete> - Element.hide('wait') + jQuery('#wait').hide() </prop:ClientSide.OnComplete> </com:TActivePager> <span id="wait" style="display: none;color: red">Please Wait...</span> @@ -77,11 +77,11 @@ Total <%# $this->Parent->PageCount %> pages. OnPageIndexChanged="pageChanged" OnCallBack="RenderCallback" > -<prop:ClientSide.OnLoading> - Element.show('wait') + <prop:ClientSide.OnLoading> + jQuery('#wait').show() </prop:ClientSide.OnLoading> <prop:ClientSide.OnComplete> - Element.hide('wait') + jQuery('#wait').hide() </prop:ClientSide.OnComplete> </com:TActivePager> <br/> @@ -92,11 +92,11 @@ Choose page: OnPageIndexChanged="pageChanged" OnCallBack="RenderCallback" > -<prop:ClientSide.OnLoading> - Element.show('wait') + <prop:ClientSide.OnLoading> + jQuery('#wait').show() </prop:ClientSide.OnLoading> <prop:ClientSide.OnComplete> - Element.hide('wait') + jQuery('#wait').hide() </prop:ClientSide.OnComplete> </com:TActivePager> <com:TJavascriptLogger/> diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.page index 04781438..6be81e96 100755 --- a/demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TCallback/Home.page @@ -39,7 +39,7 @@ The third parameter is taken from the textbox; {
var request = <%= $this->callback2->ActiveControl->Javascript %>;
var param2 = 'value 2';
- var param3 = $('<%= $this->txt1->ClientID %>').value;
+ var param3 = $('#<%= $this->txt1->ClientID %>').val();
request.setCallbackParameter({'Param1':param1, 'Param2':param2, 'Param3':param3});
request.dispatch();
}
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page index 06ed6295..f7d03ea2 100755 --- a/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page @@ -1,6 +1,11 @@ <com:TContent ID="body">
<h1>Conditional Validation (client-side + server side)</h1>
+<com:TStyleSheet>
+.required {
+ background-color: #E77471;
+}
+</com:TStyleSheet>
<table class="sampletable">
<tr>
<td class="samplenote">
@@ -22,7 +27,7 @@ Check "optional" to validate both textboxes ErrorMessage="*"
ControlCssClass="required">
<prop:ClientSide.OnValidate>
- sender.enabled = $('<%= $this->check1->ClientID %>').checked;
+ sender.enabled = jQuery('#<%= $this->check1->ClientID %>').get(0).checked;
</prop:ClientSide.OnValidate>
</com:TRequiredFieldValidator>
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page index bfbbe8e3..6c79fae4 100755 --- a/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TSlider/Home.page @@ -16,7 +16,7 @@ Horizontal slider from -50 to 50, Javascript 'onSlide' handler, ServerSide 'onS </td><td class="sampleaction"> <com:TSlider id="slider2" AutoPostBack="true" Direction="Horizontal" Value="0" Enabled="true" MinValue="-50" MaxValue="50" OnValueChanged="slider2Changed"> <prop:ClientSide.onSlide> - $('slider2value').innerHTML = value; + $('#slider2value').get(0).innerHTML = value; </prop:ClientSide.onSlide> </com:TSlider> Value : <span id="slider2value"><%=$this->slider2->value%></span> @@ -28,14 +28,14 @@ Vertical slider from 0 to 1, Javascript 'onSlide' handler, ServerSide 'onSliderC </td><td class="sampleaction"> <com:TSlider id="slider3" AutoPostBack="false" Direction="Vertical" Enabled="true" MinValue="0" MaxValue="1" StepSize="0.1" OnValueChanged="slider3Changed"> <prop:ClientSide.onSlide> - $('slider3value').innerHTML = value; + $('#slider3value').get(0).innerHTML = value; </prop:ClientSide.onSlide> </com:TSlider> Value : <span id="slider3value"><%=$this->slider3->value%></span> </td><td class="sampleaction"> <com:TButton Text="Submit"/> <com:TLabel id="slider3Result"/> -</td></tr>
-</table>
+</td></tr> +</table> </com:TContent>
\ No newline at end of file |