1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    olvap is on a distinguished road

      0  

    Default [SOLVED] dont work whit ie

    [SOLVED] dont work whit ie


    i have this code

    var simple = new Ext.FormPanel({
    labelWidth: 125,
    bodyStyle:'padding:5px 5px 0',
    width: 310,
    defaultType: 'textfield',
    items: [{
    labelWidth: 100,
    width: 100,
    fieldLabel: 'Calle',
    id: 'calle'},
    {
    labelWidth: 100,
    width: 100,
    fieldLabel: 'altura',
    id: 'altura'}
    ,datefield
    ,combo
    ],
    buttons: [{
    text:'Mostrar',
    name:'mostrar',
    id:'mostrar',
    handler: function(){
    var dir=simple.getComponent(altura).value+" "+simple.getComponent(calle).value+", Santa Fe, Santa Fe, Argentina";
    alert(dir);
    }
    }]
    });

    The variable 'dir' is null whit EI.
    works whit mozilla.

    there is the web page. www.olvap.com.ar/farmacia

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Read your code.

    Code:
    var dir=simple.getComponent(altura).value+" "+simple.getComponent(calle).value+", Santa Fe, Santa Fe, Argentina";
    Are these two variables defined anywhere that we can't see?

  3. #3
    Sencha User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    olvap is on a distinguished road

      0  

    Default


    i guess not. how do i have to do to use the value of the textfields 'calle' and 'altura'?

  4. #4
    Sencha User
    Join Date
    Sep 2008
    Posts
    42
    Vote Rating
    0
    olvap is on a distinguished road

      0  

    Default


    ok, thanks animal, i did ti, i defined these variables and change this
    var dir=simple.getComponent(altura).value+" "+simple.getComponent(calle).value+", Santa Fe, Santa Fe, Argentina";

    fot this
    var dir=altura.getValue()+" "+calle.getValue()+", Santa Fe, Santa Fe, Argentina";

Thread Participants: 1