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