1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    56
    Answers
    2
    Vote Rating
    1
    DetBerlin is on a distinguished road

      0  

    Default Unanswered: textfield fill data

    Unanswered: textfield fill data


    hi everybody,

    my english is not so good.
    i use translatorsoftware......



    I want my text box to fill only as json?
    would love a script for .... I'm here all the time in vain in the forum ....

  2. #2
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    India
    Posts
    36
    Answers
    1
    Vote Rating
    4
    vasanth.kvj is on a distinguished road

      0  

    Default


    Hi, You cannot fill the text field with JSON. You need to encode/ decode the object (your JSON) based on your need. You can use like
    Code:
    Ext.onReady(function(){
        var myJSon, panel;
        
        myJSon = ['{"menu":  {   "id": "file",   "value": "File",   "popup": {     "menuitem": [        {"value": "New", "onclick": "CreateNewDoc()"},       {"value": "Open",  "onclick": "OpenDoc()"},       {"value": "Close", "onclick":  "CloseDoc()"}     ]   } }}'];    
        
            panel = Ext.create('Ext.panel.Panel', {
            renderTo: Ext.getBody(),
            title: 'JSON',
            width: 600,
            bodyPadding: 10,
            layout: 'anchor',
                items: [{
                    xtype: 'textfield',
                    value: Ext.encode(myJSon)
                }]
        });
    });

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi