-
28 Mar 2008 4:28 AM #31
nice plug-in and looks very useful, could some please show an ASP example of a simple validation?
Thanks!
-
28 Mar 2008 4:38 AM #32
Unfortunately not, because I do not use Micro$oft "products".
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
31 Mar 2008 11:15 PM #33
Hi!!
I'm trying to validate some parameters in the server side, and your plugin looks really good!!!
But can you share a simple example with a servlet???
Thanks in advance!!!!
-
1 Apr 2008 4:34 AM #34
Server side varies very much; some use php, some jsp, some asp, etc... So it is up to you to code server side logic.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
3 Apr 2008 7:55 AM #35
I am having hard time to set value in RemoteValidator's params with valHourTime and valMinTime and I always get empty values. after POST.
I tried to use with var valHourTime = Ext.getCmp('hourtime');
AND
var valHour = simple.getForm().findField('hourtime').getValue();
They all gave me blank values.
This is my POST result:
field: minutesUsed
hours:
value:12 //number of minutes
Can you tell me what did I wrong do with it? Please
PHP Code:{
{
xtype:'numberfield',
allowNegative: false,
fieldLabel: 'Minute Used',
name: 'minutesUsed',
width: 95,
minValue: 1,
id:'minutetime',
allowBlank:false,
plugins:[Ext.ux.plugins.RemoteValidator]
,rvOptions: {
url:'validate.php', params:{hours: valHourTime}} //problem: wont get any value from hoursUsed field
}
},{
xtype:'numberfield',
allowNegative: false,
fieldLabel: 'Hour Used',
name: 'hoursUsed',
width: 95,
minValue: 1,
id:'hourtime',
allowBlank:false,
plugins:[Ext.ux.plugins.RemoteValidator]
,rvOptions: {
url:'validate.php', params:{minutes: valMinTime}}//problem: wont get any value from minutesUsed field
}
-
3 Apr 2008 8:04 AM #36
This looks like the problem is outside of the validator. Easiest is to give field ids and then Ext.getCmp('that-id').getValue()
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
3 Apr 2008 10:33 AM #37
Thank you for reply so quickly. You are right about that but still I couldnt figure it out what did I set it wrong. Let's check if I am doing right or not. About field ids, I already set it up as id:'minutetime' id:'hourtime' (see my previous post ) and did set var valHourTime = Ext.getCmp('hourtime') outside the formpanel. Is that all? Am I missing anything?
-
3 Apr 2008 12:02 PM #38
Well, I cannot say before seeing the code but this is not good place for general queries that are not RemoteValidator specific. Open new thread in Help forum instead.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
2 May 2008 3:28 AM #39
Hello,
Nice plugin!
But I have some problem with it.
I have a edit action in grid. And form is loaded (calls for ex. editFrom.form.load()). So data is loaded but shows message "Server has not yet validated the value". But server validation has not called.
Does any body know how to fix it?
Thanks, Ruslan
P.S. Sorry for my English, I'm ukrainian.
-
3 May 2008 2:38 AM #40
If you load values from server you are sure are valid you can pass config option remoteValid:true.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video


Reply With Quote