PDA

View Full Version : [CLOSED-703] sporadic error in IE with the ext-core UX Menu



jdarbyshire
9 Mar 2010, 3:15 PM
I get a sporadic error in IE with the extCore Menu system which I am applying to a bunch of list items in a list.

The error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)
Timestamp: Mon, 8 Mar 2010 23:13:54 UTC


Message: 'this.el' is null or not an object
Line: 67
Char: 9
Code: 0
URI: http://toopnet.tt.internal/lib/menu/menu.js



Which looks like this:
http://poseidon.toop.com.au/menu_error.PNG

I am loading the menu using the onReady function ala:

Ext.onReady(function() {
new Ext.ux.Menu('menu', {
direction: 'horizontal', // default
delay: 0.1, // default
autoWidth: true, // default
transitionDuration: 0.2, // default
animate: true, // default
currentClass: 'current' // default
});
});

And menu HTML ala:

<div id="menuWrapper">
<ul id='menu'>
<li>
<a href='index.php?page=home'>Home</a>
<ul>
<li>
<a href='index.php?page=home'>My ToopNET</a>
</li>
<li>
<a href='index.php?page=news'>Latest News</a>
</li>
</ul>
</li>
<li>
<a href='index.php?page=sales'>Sales</a>
</li>
<li>
<a href='index.php?page=property_management'>PM</a>
</li>
<li>
<a href='index.php?page=marketing'>Marketing</a>
</li>
<li>
<a href='index.php?page=admin'>Admin</a>
</li>
<li>
<a href='index.php?page=lounge'>Lounge</a>
<ul>
<li>
<a href='index.php?page=forum'>Forum</a>
</li>
<li>
<a href='index.php?page=chat'>Chat</a>
</li>
<li>
<a href='index.php?page=chatSales'>Sales Chat</a>
</li>
<li>
<a href='index.php?page=chatPM'>PM Chat</a>
</li>
<li>
<a href='index.php?page=chatMarketing'>Marketing Chat</a>
</li>
<li>
<a href='index.php?page=chatAdmin'>Admin Chat</a>
</li>
</ul>
</li>
<li style='float: right;'>
<a href='#'>James Darbyshire</a>
<ul>
<li>
<a href='login.php?logout=yes'>Logout</a>
</li>
<li>
<a href='admin.php'>ToopNet cPanel</a>
</li>
</ul>
</li>
</ul>
</div>

It happens probably once every 8 refreshes - which is too much.

Also reported here -> http://www.extjs.com/forum/showthread.php?p=445049#post445049

evant
9 Mar 2010, 3:35 PM
Have you tried the latest from SVN? http://www.extjs.com/products/extcore/download.php

There was a fix committed to resolve onReady issues with IE.

jdarbyshire
9 Mar 2010, 3:40 PM
Yes I have the latest version from SVN. If I change the JS to the start of the html file, I still get the error. If I move it to the end onReady is called properly.

evant
9 Mar 2010, 4:01 PM
Latest being: http://svn.extjs.com/svn/ext-core/branches/ext-3.2.x/

jdarbyshire
9 Mar 2010, 4:18 PM
I was updating off the 3.1.x branch but am now updating off the 3.2.x branch

Problem still exists sporadically when JS just after <body> or in <head>

Problem does not exist when JS just before </body>

evant
9 Mar 2010, 4:22 PM
The onReady code has been tested fairly thoroughly and we weren't able to fault it.

Care to post an example online?

jdarbyshire
9 Mar 2010, 4:32 PM
I will get a version which suffers the problem online when I have a chance. At the moment it is on a intranet server which is not accessible from the internet.

Will get back :)

evant
14 Jul 2010, 5:35 AM
Since no extra info has been provided I'm going to close this thread. If you have any extra info please open a new thread.