Hello,

i got a JS package that must be call during onload page, like
following

html page content
----------------------------
<body onload="initTab();">

bababababa
babababababa

</body>

so now i implemented a ajax to load that html page, but it seems
initTab() on onload body didnt take any effect after loaded of this
page.

ajax
-----
if (xmlHttp.readyState == 4){
        loader_msg.innerHTML = xmlHttp.responseText;
}

then i made a bit change of that ajax as following ( i take onload
body tag out of the html page already )

ajax
------
......
if (xmlHttp.readyState == 4){
        loader_msg.innerHTML = xmlHttp.responseText;
        initTab();
}

It is work fine as what I am expected, but only work in FF, Chrome,
BUT not IE

So I am wondering is it any correct approach to implement it?
It really make me headache that different browser hit different
outcome.

Many thanks/Davis.

Reply via email to