I am using both IE and Firefox for testing. The Dojo addOnLoad works for both browsers BUT for Firefox, it fires before my Dojo TabContainer is initialised. For IE, it is working fine. Is there any other Dojo / Javascript / jQuery method to circumvent this problem?
Script
<script>
dojo.addOnLoad( function(){
alert("Tabcontainer loaded");
});
</script>
TabContainer
<div dojoType="dijit.layout.TabContainer" id="TabContainer">
I have fixed it! This is done by including the first jsp page using the
<%@include>This will definitely initialise the TabContainer so that future tabs can be added.