1. #31
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    213
    Vote Rating
    0
    sanjshah is on a distinguished road

      0  

    Default


    nice plug-in and looks very useful, could some please show an ASP example of a simple validation?

    Thanks!

  2. #32
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Unfortunately not, because I do not use Micro$oft "products".
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #33
    Ext User
    Join Date
    Mar 2008
    Posts
    34
    Vote Rating
    0
    chiru is on a distinguished road

      0  

    Default


    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!!!!

  4. #34
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    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

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #35
    Sencha User
    Join Date
    Feb 2008
    Posts
    21
    Vote Rating
    0
    omegafox is on a distinguished road

      0  

    Default


    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',
         
    allowNegativefalse
         
    fieldLabel'Minute Used',
         
    name'minutesUsed',
         
    width95,
         
    minValue1,
         
    id:'minutetime',
         
    allowBlank:false,
         
    plugins:[Ext.ux.plugins.RemoteValidator]
         ,
    rvOptions: {
         
    url:'validate.php'params:{hoursvalHourTime}} //problem: wont get any value from hoursUsed field
                        
                    
    }
                    },{
         
    xtype:'numberfield',
         
    allowNegativefalse
         
    fieldLabel'Hour Used',
         
    name'hoursUsed',
         
    width95,
         
    minValue1,
         
    id:'hourtime',
         
    allowBlank:false,
         
    plugins:[Ext.ux.plugins.RemoteValidator]
         ,
    rvOptions: {
         
    url:'validate.php'params:{minutesvalMinTime}}//problem: wont get any value from minutesUsed field

                        
                    


  6. #36
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    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

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  7. #37
    Sencha User
    Join Date
    Feb 2008
    Posts
    21
    Vote Rating
    0
    omegafox is on a distinguished road

      0  

    Default


    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?

  8. #38
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    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

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  9. #39
    Ext User
    Join Date
    Apr 2008
    Posts
    3
    Vote Rating
    0
    shrus is on a distinguished road

      0  

    Default


    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.

  10. #40
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    If you load values from server you are sure are valid you can pass config option remoteValid:true.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM