HZNM.COM
welcome to my space
X
Search:  
 HOME   Problem with Form onRender
Problem with Form onRender
Published by: smith 2010-03-14
Welcome to:hznm.com

  • My problem is that the form fields doesn't get data from json - the field is blank but I should be data in there. My code:


    DictonaryApplication.Form = Ext.extend(Ext.form.FormPanel,
    {
    border:false,
    frame:false,
    url:'',
    initComponent:function()
    {
    Ext.apply(this,
    {
    frame: true,
    autoScroll: true,
    focus event not bubble up::
    Im building a form in which the specified values (the ones written in the value The problem comes with password inputs because the type attributes cant be changed in IE.
    http://www.devcomments.com/focus-event-not-bubble-up-at58562.htm
    HOME
    15 Seconds : An Innovative Technique for Creating Reusuable ::
    Code reusuability is one of the major goals of any good object problem, one of the most common being a technique that is based on overriding a base pages OnRender() method.
    http://www.15seconds.com/issue/050714.htm
    HOME
    bodyStyle:'padding:5px 5px 0',
    labelAlign: 'left',
    items: this.FormFields,
    reader: new Ext.data.JsonReader(
    {
    root: 'results'
    },
    ['KOD_GUS']
    ),
    buttons: [
    {
    text: 'Zapisz zmiany'
    },{
    text: 'Anuluj'
    }]
    });
    DictonaryApplication.Form.superclass.initComponent .apply(this, arguments);
    },
    onRender:function()
    {
    this.load(
    {
    url: 'index.php?action=DicValues&dictonary_def='+this.db_codelist,
    params: {codenum: 40335 },
    method: 'GET',
    waitMsg: 'Wczytywanie danych...'
    });
    DictonaryApplication.Form.superclass.onRender.appl y(this, arguments);

    }
    });


    Json returns:


    {"results":[{"codenum":"40335","KOD_GUS":"1 Armii Wojska Polskiego"}]}


  • Animal ,you are the greatest :) Thx :)


  • What is this.formFields?

    You do not need to use a Reader if you return JSON.

    But read the API docs on Action.Load: http://extjs.com/deploy/dev/docs/?class=Ext.form.Action.Load

    You need success and data properties in your JSON, and the data contains properties which should match the names of form fields.





  • Challenging Books For A 14 Year Old?
    First guitar : acoustic or electric?

    You are looking at:hznm.com's Problem with Form onRender, click hznm.com to home
  • im needs to build a community
  • oasis works to id distributed directory services
  • cert warns of sip vulnerabilities
  • return of the yaha worm
  • ibm boosts software toolbox subscription
  • a shift in platform choices favors java
  • sony takes playstation 2 to the grid
  • what s in a name for microsoft not net
  • expansion cards getting makeover
  • altavista spruces up multimedia news offerings
  • microsoft gives p2p a chance
  • macromedia updates coldfusion for j2ee adds os support
  • apple is sweet on newest jaguar
  • intel ceo calls for more convergence
  •  
  • former ibm ers launch tahoe rf semiconductor
  • apple switch campaign shifts to unix crowd
  • open source group issues top ten web vulnerabilities
  • microsoft launches desktop center for xp
  • new dolby tech sounds good to adi chipsets
  • realnetworks unveils drm for mpeg 4 mp3
  • web services autcation takes leap forward
  • w3c whips up api to manage web languages
  • intel hands developers its library card
  • rambus sees logic for the trees
  • qualcomm giving away encryption software
  • ssh putty exploit code posted
  • security bugs in oracle lotus products
  • avril worm may makes things complicated
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ