PDA

View Full Version : a weird problem with autoload of panel



zzw0598
12 Apr 2010, 9:24 AM
mainpage.html include below code:


new Ext.Panel({ autoLoad : {
url : "main.html",
nocache : true,
scripts : true
}
})


and main.html

<script type="text/javascript" src="main.js">
</script>

and main.js has a Ext.onReady() method, and some components rendered to mainpage's panel.

when there's only one <scritp> marks in main.html, It works in FF and IE8.

if main.html like this:
<script type="text/javascript" src="main1.js">
</script>
<script type="text/javascript" src="main2.js">
</script>

and main2.js use a component created in main1.js, It will give an erorr at first run with IE, like " component not found ".
and it works after refreshed the page.

It works perfectly in FF.

any one help me?