-
11 May 2009 7:51 AM #1
[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
-
11 May 2009 7:56 AM #2
Read your code.
Are these two variables defined anywhere that we can't see?Code:var dir=simple.getComponent(altura).value+" "+simple.getComponent(calle).value+", Santa Fe, Santa Fe, Argentina";
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
11 May 2009 8:01 AM #3
i guess not. how do i have to do to use the value of the textfields 'calle' and 'altura'?
-
11 May 2009 8:20 AM #4
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";


Reply With Quote