PDA

View Full Version : V3.1.0 vs Buttons



BuckBazooka
30 Dec 2009, 6:29 AM
Hi,

I have the following code making problems in IE8. Only in IE8.


...
var tdHolder = Ext.select(".addMoreRecipient").last();
new Ext.Button({
renderTo:tdHolder,
handler:onAddRecipient,
id:'addRecipientButton',
iconCls: 'addItem',
text: 'Add Recipient'
});
...


When the button is constructed I have an error which I do not understand:


<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 30 Dec 2009 14:25:14 UTC

Message: Invalid argument.
Line: 2919
Char: 13
Code: 0
URI: http://extjs.cachefly.net/ext-3.1.0/ext-all-debug.js
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<


My code was working perfectly with version 3.0.3! When I remove the renderTo parameter I have no error ( but of course I don't see my button). Any help or suggestion would be highly appreciated. Thanks

Condor
30 Dec 2009, 6:41 AM
tdHolder will contain an Ext.Element.Flyweight and not a true Ext.Element.

Does changing:

renderTo: tdHolder.dom,
solve the problem?

BuckBazooka
30 Dec 2009, 6:48 AM
Thanks... That solves it. I was not expecting an answer for 2009!! :-) Thanks a lot, and happy new year.