Jan 26, 2009, 11:53 AM
My GenericPlugin don´t work with
hi, sorry my question but it or is very hard or I'm a big monkey (it's more possible).
I try make the generic plugin work with TextField for make a mask (I read in the topic) but don´t work nothing...
I have two codes from InputTextMask
this http://www.desenvolvedores.net/reina...utTextMask.rar
and http://www.desenvolvedores.net/reina...herryonext.rar
right!, this codes don´t have errors (I think, build all without errors)
I try use it of 2 or 3 ways
first
<ext:ScriptContainer runat="server" / >
<script src="js/InputTextMask.js" type="text/javascript"></script>
in the script I try with runat="server" too
in page i put this code
<ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
<Plugins>
<ux:InputTextMask Mask="9.999,99" />
</Plugins>
</ext:TextField>
don´t work,
i try this
<ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
<Plugins>
<ext:GenericPlugin Path="~/js/InputTextMask.js"
InstanceOf="Ext.ux.InputTextMask({mask:'999.999.999-99', clearInvalid:true})" />
</Plugins>
</ext:TextField>
and this
<ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
<Plugins>
<ext:GenericPlugin Path="~/js/InputTextMask.js" InstanceOf="Ext.ux.InputTextMask">
<CustomConfig>
<ext:ConfigItem Name="Mask" Value="9.999,99" />
</CustomConfig>
</ext:GenericPlugin>
</Plugins>
</ext:TextField>
finaly I make this in the code behind
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim gPlug As GenericPlugin
gPlug = New GenericPlugin
With gPlug
.InstanceOf = "Ext.ux.InputTextMask({mask:'999.999.999-99', clearInvalid:true})"
.Path = "~/js/InputTextMask.js"
End With
Me.a_minima.Plugins.Add(gPlug)
End Sub
but nothing work every have one error: or espected {
or function expected
I need help with this... because i realy don´t know what is wrong in my code...
:(
thank´s to all...
hi, sorry my question but it or is very hard or I'm a big monkey (it's more possible).
I try make the generic plugin work with TextField for make a mask (I read in the topic) but don´t work nothing...
I have two codes from InputTextMask
this http://www.desenvolvedores.net/reina...utTextMask.rar
and http://www.desenvolvedores.net/reina...herryonext.rar
right!, this codes don´t have errors (I think, build all without errors)
I try use it of 2 or 3 ways
first
<ext:ScriptContainer runat="server" / >
<script src="js/InputTextMask.js" type="text/javascript"></script>
in the script I try with runat="server" tooin page i put this code
<ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
<Plugins>
<ux:InputTextMask Mask="9.999,99" />
</Plugins>
</ext:TextField>
don´t work,i try this
<ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
<Plugins>
<ext:GenericPlugin Path="~/js/InputTextMask.js"
InstanceOf="Ext.ux.InputTextMask({mask:'999.999.999-99', clearInvalid:true})" />
</Plugins>
</ext:TextField>
and this<ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
<Plugins>
<ext:GenericPlugin Path="~/js/InputTextMask.js" InstanceOf="Ext.ux.InputTextMask">
<CustomConfig>
<ext:ConfigItem Name="Mask" Value="9.999,99" />
</CustomConfig>
</ext:GenericPlugin>
</Plugins>
</ext:TextField>
finaly I make this in the code behind Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim gPlug As GenericPlugin
gPlug = New GenericPlugin
With gPlug
.InstanceOf = "Ext.ux.InputTextMask({mask:'999.999.999-99', clearInvalid:true})"
.Path = "~/js/InputTextMask.js"
End With
Me.a_minima.Plugins.Add(gPlug)
End Sub
but nothing work every have one error: or espected {or function expected
I need help with this... because i realy don´t know what is wrong in my code...
:(
thank´s to all...