Jun 15, 2009, 12:52 PM
Extra parameters Ajax Method from a Text Field
Hello, I have a problem.
I have window with Showonload="false". When I click a button show this window.
In this window I have 2 textfield and 1 button.
When click this button I want to call a method "add_purl" presents in the code behind.
My problem is to pass the Extra Params to the method.
Post the code
does not work.
Please help Me
Thanks
I have window with Showonload="false". When I click a button show this window.
In this window I have 2 textfield and 1 button.
When click this button I want to call a method "add_purl" presents in the code behind.
My problem is to pass the Extra Params to the method.
Post the code
<ext:Window ID="Window_add_PURL" runat="server" Icon="Star" Title="Add a new Prefered url"
Showonload="false" X="250" Y="100" Height="150" Width="250">
<Body>
<table><tr><td style="padding: 10px 10px 10px
10px;"><ext:Label runat="server"
Text="Url"></ext:Label></td>
<td><ext:TextField ID="purl_descr" Text="www" LabelCls="Description:" runat="server">
</ext:TextField></td>
</tr><tr><td style="padding: 10px 10px 10px
10px;"><ext:Label runat="server"
Text="Description"></ext:Label></td>
<td><ext:TextField ID="purl_url" FieldLabel="URL:" runat="server" >
</ext:TextField></td>
</tr><tr><td colspan="2" align="center">
<ext:Button ID="bt_add_purl" HandleMouseEvents="true" runat="server" Text="Add" Flat="true"
Icon="Accept">
<AjaxEvents>
<Click OnEvent="add_purl">
<EventMask ShowMask="true" MinDelay="500" Msg="Saving setting..." />
<ExtraParams>
<ext:Parameter Name="descr" Mode="Raw" Value="purl_descr.Text">
</ext:Parameter>
<ext:Parameter Name="url" Mode="Raw" Value="purl_url.Text">
</ext:Parameter>
</ExtraParams>
</Click>
</AjaxEvents>
</ext:Button></td></tr>
</table>
</Body>
</ext:Window>
If the extra params descr and url are in mode "Value" NO problem, it's all ok, but in mode "raw" the buttondoes not work.
Please help Me
Thanks