PDA

View Full Version : IE7/IE8 do not like border layout (in my case)



rocksportrocker
10 Jun 2009, 2:25 AM
Hi,

I have a problem with the following code. It runs fine on Firefox and Chrome, but gives
an error message on IE7 and IE8, which says that there is an invalid argument in line 3704.
If I ommit the 'split' parameter for the 'west' region the message disappears, but that is not
the layout I want.

The IE8 debugger shows me lots of packed javascript code which I do not understand.
I found no hint using Google and the search method of this forum.

Can anybody help me ?

Greetings, Uwe


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css"/>

<!-- GC -->
<!-- LIBS -->
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<!-- ENDLIBS -->

<script type="text/javascript" src="extjs/ext-all-debug.js"></script>

<script type="text/javascript">


Ext.onReady(function() {
var viewport = new Ext.Viewport({
layout:'border',
items:[
{
region: 'west',
html: 'west',
title:'west',
split: true
},
{
region: 'center',
id : 'east',
title:'center',
html:'Content 3',
split: true
}
]
});

})
</script>
</head>
<body></body>
</html>

Animal
10 Jun 2009, 2:27 AM
The code looks OK.

Animal
10 Jun 2009, 2:29 AM
Apart from the west must be given a width.

rocksportrocker
10 Jun 2009, 2:40 AM
Apart from the west must be given a width.

Hi, that was the reason. I looked at the api docs of extjs 2.x and not extjs 3.0.

Thanks,

Uwe