PDA

View Full Version : IE errors



ZyRa
16 Sep 2009, 4:49 AM
Hi i got some IE JS errors on a basic Tab:

'null' ist Null oder kein Objekt effects.js?1253094743, Zeile 536 Zeichen 3
Objekt erforderlich prototype.js?1253094743, Zeile 3861 Zeichen 7
Objekt erforderlich prototype.js?1253094743, Zeile 3861 Zeichen 44
Objekt erforderlich prototype.js?1253094743, Zeile 3861 Zeichen 7
'events' ist Null oder kein Objekt ext-all.js?1253094624, Zeile 7 Zeichen 143278
'null' ist Null oder kein Objekt effects.js?1253094743, Zeile 536 Zeichen 3

ist = is
oder = or
kein = no
erforderlich = requiered
Zeile = line



<!DOCTYPEHTMLPUBLIC"-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<metahttp-equiv="content-type"content="text/html;charset=UTF-8"/>
<title>browse_manufacturers</title>
<linkhref="/stylesheets/webshop.css?1253094743"media="screen"rel="stylesheet"type="text/css"/>
<linkhref="/stylesheets/ext_scaffold.css?1253094743"media="screen"rel="stylesheet"type="text/css"/>
<linkhref="/stylesheets/../ext/resources/css/ext-all.css?1253094620"media="screen"rel="stylesheet"type="text/css"/>
<scriptsrc="/javascripts/prototype.js?1253094743"type="text/javascript"></script>
<scriptsrc="/javascripts/effects.js?1253094743"type="text/javascript"></script>
<scriptsrc="/javascripts/dragdrop.js?1253094743"type="text/javascript"></script>
<scriptsrc="/javascripts/controls.js?1253094743"type="text/javascript"></script>
<scriptsrc="/javascripts/application.js?1253094743"type="text/javascript"></script>
<scriptsrc="/javascripts/../ext/adapter/prototype/ext-prototype-adapter.js?1253094610"type="text/javascript"></script>
<scriptsrc="/javascripts/../ext/ext-all.js?1253094624"type="text/javascript"></script>
<scriptsrc="/javascripts/ext_datetime.js?1253094743"type="text/javascript"></script>
<scriptsrc="/javascripts/lowpro.js?1253094743"type="text/javascript"></script>
<scriptsrc="/javascripts/abdunkeln.js?1253094743"type="text/javascript"></script>
<scriptsrc="/javascripts/ext_searchfield.js?1253094743"type="text/javascript"></script>

</head>
<body>
<pstyle="color: green"></p>
<center>
<divid="wrapper">
<divid="header">
<!--
@type_identifier == 'themes'
@type_identifier.nil?
-->
<divid="headerouter">
<divid="logo"class="headerfloat">
Logo
</div>

</div>
</div>
</div>

<divid="left">
<divid="topleft">
<divid="handsets">
<divid="tophandset"style="background-image: url(/images/webshop/handytyp_background.png); background-repeat:no-repeat; min-height:127px;">
<divid="topnohandsetinside">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Kein Handy ausgew&auml;hlt.</p>
</div>
?
<divid="choosehandset">
<center>
<ahref="/web_shop/browse_manufacturers"><imgalt="Handytyp_button1"src="/images/webshop/handytyp_button1.png?1253094743"/></a>
</center>
</div>
</div>
</div>
<divid="leftbanner">
</div>
</div>
</div>

<divid="right">
<divid="topright">
<divid="rightbanner">
</div>
<divid="Warenkorb">
<divid="topcart"style="background-image: url(/images/webshop/warenkorb_background.png); background-repeat:no-repeat; min-height:127px;">
<divid="topcartitems">
<p>Artikel: 0</p>
<p>Summe: SEK 0.0</p>
</div>
<divid="ChooseCart">
<center>
<ahref="/web_shop/browse_cart"><imgalt="Warenkorb_button1"src="/images/webshop/warenkorb_button1.png?1253094743"/></a>
</center>
</div>
</div>
</div>
</div>
</div>
<divid="main">
<divid="Content_tab_handset"></div>
</div>
<scripttype="text/javascript">

Ext.onReady(function(){
var tabs = new Ext.TabPanel({
renderTo: 'Content_tab_handset',
activeTab: 5,
width: 950,
height: 520,
frame: true,
headerAsText: true,
title:'<img src=\"/images/webshop/handyauswahl_icon.png\" style=\"vertical-align: middle;\"/> Handyauswahl',
defaults:{autoscroll: false},
items:[

{
title: 'Blackberry',
autoLoad: '/web_shop/browse_handsets?manufacturer=Blackberry'
},

{
title: 'HTC',
autoLoad: '/web_shop/browse_handsets?manufacturer=HTC'
},

{
title: 'Huawei',
autoLoad: '/web_shop/browse_handsets?manufacturer=Huawei'
},

{
title: 'LG',
autoLoad: '/web_shop/browse_handsets?manufacturer=LG'
},

{
title: 'Motorola',
autoLoad: '/web_shop/browse_handsets?manufacturer=Motorola'
},

{
title: 'Nokia',
autoLoad: '/web_shop/browse_handsets?manufacturer=Nokia'
},

{
title: 'Samsung',
autoLoad: '/web_shop/browse_handsets?manufacturer=Samsung'
},

{
title: 'Sharp',
autoLoad: '/web_shop/browse_handsets?manufacturer=Sharp'
},

{
title: 'SonyEricsson',
autoLoad: '/web_shop/browse_handsets?manufacturer=SonyEricsson'
},

{
title: 'Vodafone',
autoLoad: '/web_shop/browse_handsets?manufacturer=Vodafone'
},

]
})
});
</script>



<divid="foot">
<p>&copy; mobivention</p>
<p><ahref="/web_shop/faq">Häufige Fragen</a> | <ahref="/web_shop/customer">Kundenbetreuung</a> | <ahref="/web_shop/impressum">Impressum</a> | <!-- AddThis Button BEGIN -->
<aclass="addthis_button"href="http://www.addthis.com/bookmark.php?v=250&amp;pub=mobivention"><imgsrc="http://s7.addthis.com/static/btn/v2/lg-share-en.gif"width="125"height="16"alt="Bookmark and Share"style="border:0; vertical-align:middle;"/></a><scripttype="text/javascript"src="http://s7.addthis.com/js/250/addthis_widget.js?pub=mobivention"></script>
<!-- AddThis Button END -->
</p>
</div>
</div>
</center>
<scripttype="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<scripttype="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10620589-1");
pageTracker._trackPageview();
} catch(err) {}</script>
<scripttype="text/javascript">
//<![CDATA[
setTimeout(function() { new Effect.Fade("flash-message",{}); }, 2000);

//]]>
</script></body>
</html>


Any comments on error or how to solve them?
Works fine in Firefox but the panel doesn´t even show up in IE

carol.ext
16 Sep 2009, 5:02 AM
The first suggestion in the Internet Explorer section of the debugging FAQ (http://www.extjs.com/learn/Ext_FAQ_Debugging#Internet_Explorer) is to look for extra / trailing commas.

http://jslint.com can help you find them if you don't spot right away


}, <<------ extra comma at end of items array

]
})
});
</script>

tubamanu
16 Sep 2009, 5:05 AM
please make sure to write correct JS code and remove not needed ','.....and add ';' at the next to last item.....



Ext.onReady(function(){
var tabs = new Ext.TabPanel({
renderTo: 'Content_tab_handset',
activeTab: 5,
width: 950,
height: 520,
frame: true,
headerAsText: true,
title:'Handyauswahl',
defaults:{autoscroll: false},
items:[{
title: 'Blackberry',
autoLoad: '/web_shop/browse_handsets?manufacturer=Blackberry'
},

{
title: 'HTC',
autoLoad: '/web_shop/browse_handsets?manufacturer=HTC'
},

{
title: 'Huawei',
autoLoad: '/web_shop/browse_handsets?manufacturer=Huawei'
},

{
title: 'LG',
autoLoad: '/web_shop/browse_handsets?manufacturer=LG'
},

{
title: 'Motorola',
autoLoad: '/web_shop/browse_handsets?manufacturer=Motorola'
},

{
title: 'Nokia',
autoLoad: '/web_shop/browse_handsets?manufacturer=Nokia'
},

{
title: 'Samsung',
autoLoad: '/web_shop/browse_handsets?manufacturer=Samsung'
},

{
title: 'Sharp',
autoLoad: '/web_shop/browse_handsets?manufacturer=Sharp'
},

{
title: 'SonyEricsson',
autoLoad: '/web_shop/browse_handsets?manufacturer=SonyEricsson'
},
{
title: 'Vodafone',
autoLoad: '/web_shop/browse_handsets?manufacturer=Vodafone'
}]
});
});

ZyRa
16 Sep 2009, 11:59 PM
Many thanks problem is solved now ;)