Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User Lobos's Avatar
    Join Date
    Oct 2007
    Location
    Sao Paulo, Brazil
    Posts
    461
    Vote Rating
    -1
    Lobos is an unknown quantity at this point

      0  

    Default ExtCore form support

    ExtCore form support


    Just wondering if it would be a good idea to add basic form support, ie someway to easily get form values to submit and populate a form from the server with existing values. I am not sure if this is already implemented, but I haven't seen it.

    Thanks!

  2. #2
    Ext JS Premium Member syscobra's Avatar
    Join Date
    Nov 2007
    Location
    Venezuela
    Posts
    140
    Vote Rating
    0
    syscobra is on a distinguished road

      0  

    Default


    Well,
    If you add form support to core you have to make button's and fieldtext widgets and thats not what the core is, the core is just to help manipulate the DOM development using normal basic html development, that include the normal html forms.

    Cant see an implementation of that in Extcore. (You can always use ExtJS basic with Forms support only if you need it)
    Javier Rincón aka SysCobra

  3. #3
    Ext User
    Join Date
    Apr 2009
    Posts
    35
    Vote Rating
    0
    EXT-Phuket is on a distinguished road

      0  

    Default


    Quote Originally Posted by syscobra View Post
    Well,
    If you add form support to core you have to make button's and fieldtext widgets and thats not what the core is, the core is just to help manipulate the DOM development using normal basic html development, that include the normal html forms.

    Cant see an implementation of that in Extcore. (You can always use ExtJS basic with Forms support only if you need it)
    I think he was talking about form support not a widget ....

    IE this.getValue().... this.submit(), this.setValue()

  4. #4
    Ext JS Premium Member syscobra's Avatar
    Join Date
    Nov 2007
    Location
    Venezuela
    Posts
    140
    Vote Rating
    0
    syscobra is on a distinguished road

      0  

    Default


    well maybe you are right or maybe not.

    IE in html you dont have to this.getValue() because that would be to get it in the value to Javascript to process in a widget. In html the form posts to a server backend and its available through post variables, so why you will want to have the value in Javascript if you are going to use it only to post in the server?. the this.setValue() works too when you render the html. You only use this.setValue() to put the value to a widget and this.submit() to process the values of the form widgets and post them to the server. All that can be made easily in html if you are not going to use widgets, so i cant see the use.
    Maybe i am still wrong. Dunno :P
    Javier Rincón aka SysCobra

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    14
    Vote Rating
    0
    emendez is on a distinguished road

      0  

    Default Inputex

    Inputex


    Maybe not as part of default package but some ux along the lines of the following would be useful.
    http://javascript.neyric.com/inputex/

  6. #6
    Sencha User Lobos's Avatar
    Join Date
    Oct 2007
    Location
    Sao Paulo, Brazil
    Posts
    461
    Vote Rating
    -1
    Lobos is an unknown quantity at this point

      0  

    Default


    yeah I wasn't talking about a widget, mainly some kind of method that would be able to quikcly get the values of an existing form or populate an existing form from values.

    something like form.getValues() as well as another something like form.populate()

    in regards to poplulate this could be simply a json object container name / value pairs.

    dunno if it is feasable, but I htink it would save a hell of a lot of time when dealing with forms. I would like to see how it is done now with ext.core, ie how would you go about getting all the values from a form and submitting them as well as populating and existing form - I bet there would be a hell of a lot of code involved.

    the thing is that having ajax support, seems to go in hand with form support (not a widget i mean), where else do you submit data from if not a form?

    Thanks for the advice thus far!

  7. #7
    Ext JS Premium Member syscobra's Avatar
    Join Date
    Nov 2007
    Location
    Venezuela
    Posts
    140
    Vote Rating
    0
    syscobra is on a distinguished road

      0  

    Default


    Ok, i think i understand you now, you mean when you use AJAX to post the form. I search in the documentation of Ext core and i find this:
    Code:
    Posting a form with Ajax
    
    Use the form configuration to post a form with Ext.Ajax.request
    
    Ext.Ajax.request({
       url: 'ajax_demo/sample.json',
       form: 'myForm',
       success: function(response, opts) {
          var obj = Ext.decode(response.responseText);
          console.dir(obj);
       },
       failure: function(response, opts) {
          console.log('server-side failure with status code ' + response.status);
       }
    });
    I really don't know if it gets all the elements because i haven't tryed it but i will look into it, as it says "use the form configuration to post a form", i think when you put in the Ajax.request the configuration "form" maybe it gets the values of the form and pass it to the backend as POST parameters, just as if you press the submit button.

    I looked in the API documentation find the form property and it says:
    Code:
    "# form : Element/HTMLElement/String (Optional)
    The <form> Element or the id of the <form> to pull parameters from."
    So it says "PULL" parameters from... So i think it must do what you want.

    Just have to try it out.
    Last edited by syscobra; 18 Apr 2009 at 8:21 PM. Reason: Found the parameter iun the API documentation
    Javier Rincón aka SysCobra