I tried to implement the cursor focus on the input area, and IE gave me a lot of headaches. I tried things along the line (changing the timeout too, to large numbers):
setTimeout(function() { document.getElementById('myInput').focus(); }, 10);
and it wonβt work. I noticed that I have an applet on the page, and when I delete the applet, it works. Also, if I put a warning in front of the trigger focus(), it will work.
The applet does nothing especially (it actually retrieves the user's MAC address), and it makes one call to the external JS function at the end to send the MAC address to the DOM. I tried to put focus (timeout and all) at the end of this JS function, but that would not work either.
What could be wrong? Everything works fine in Firefox, just not in IE.
Current setting:
function everythingDone()
{
$("#someinput").focus();
};
$(function()
{
var applet = "<object classid='clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA' width='0' height='0'><param name='code' value='someapplet.class' /><param name='archive' value='/someapplet.jar' /></object>";
$("#appletarea").html(applet);
});