It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

jQuery and xml.

jQuery and xml.

Postby jast112 on Sat Aug 09, 2008 6:32 am

1st of all hello all.

Ok here is the problem if someone could help i would be glad tnx.
I commented the problem.

//xml.php
<?xml version="1.0" ?>
<m>08:39:27</m>

//functions.js


//start timeoutfunc
timeout(0)


//Take xml.php and parse it
function show()
{
$.get('xml.php', function(xml){
var time = $.xml2json(xml)

$("#timer").text(time.m)
});
}

//timout func
function timeout(counter)
{

counter = counter+1

if(counter == 1)
{
setTimeout('timeout("'+counter+'")', 1000)
}
else
{
if (counter == 10) counter = 0;
setTimeout('timeout("'+counter+'")', 1000)
}

//execute func
show()
}

works create on firefox but not on ie:S it doesnt update on ie Like setTimeout not working
jast112
 
Posts: 0
Joined: Sat Aug 09, 2008 6:30 am

Who is online

Users browsing this forum: No registered users and 5 guests

cron