I have a localization function defined in javascript
var locID;
function locateMe()
{
if(locID > 0)
{
}
setTimeout(locateMe, 2000);
}
locID = 0;
locateMe();
when I check this code in firefox, the locateMe function is called every two seconds and works as expected. when I test the code in IE8, the function is never called (at least it is never called from what I see using the IE developer tools)
note: in the click event handler for code "zone_row", which modifies locID, code exists. again, in firefox, everything works as expected. strange in IE, when zone_row is clicked, the WILL function will be called ONCE. I see this both in the developer tools and as a result of the action of this jquery message.
, IE, . ?
EDIT: "locateMe();" setTimeout.
UPDATE: ( ), ( , ).
<script type="text/javascript">
var z_items;
var locID;
function locateMe()
{
if(locID > 0)
{
}
setTimeout(locateMe, 2000);
}
$(document).ready(function()
{
locID = 0;
locateMe();
});
</script>
setTimeout ( ) DOCTYPE ( IE , , ONCE ).