PDA

View Full Version : browser compatibility



yog
4 Jul 2009, 3:02 AM
i am using viewport for showing tabs in north panel area. Its showing but in mozilla and not in Internet Explorer. Its giving error in this line. Pls tell me is there any prblm in this Js :

viewport.layout.north.panel.getBottomToolbar().insertButton(''+id+'',[{text:''+name+'',id:''+id+'',handler:onButtonClick,icon:''+img+'',cls:'x-btn-text-icon',tooltip:''+desc+'',border:true}]);

Animal
4 Jul 2009, 3:13 AM
"giving error". Hmm. My crystal ball has failed me.

I have to assume that what you mysteriously show us is some kind of string concatenation for some reason building Javascript source code???

Because otherwise, how could a string "+id+" be a valid first param to insertButton?

yog
4 Jul 2009, 3:37 AM
i am new to ext pls help me

mjlecomte
4 Jul 2009, 3:45 AM
"please help me" is not offering any more useful information for anyone to help you.

Please read this article completely: http://extjs.com/learn/Ext_Forum_Help

Animal
4 Jul 2009, 4:03 AM
If you are not using Firefox with Firebug to develop, then you are not doing your job properly.