$(document).ready(function(e) {
$('#btn_emials').click(function(e) {
var emails=$('#txt_emails').val();
$.ajax({
url:"../eoe/eoe_ajax.php",
type:"POST",
data:{emails:emails},
success: function(d){
if(d=="u"){
alert("Unfinished Task");
}
},
error: function(e){
alert("java error");
}
});
});
get_status();
setInterval( function() { get_status(); }, 5000 );
function get_status(){
$.ajax({
url:"../eoe/live.php",
success:function(data){
alert(data);
var v=data.split(",");
var g=v[0];
var b=v[1];
var n=v[2];
FusionCharts.setCurrentRenderer('javascript');
var myChart = new FusionCharts( "Column3D.swf", "myChartId2", "400", "200", "0", "0" );
myChart.setXMLData('<chart>' +
'<set label="Good" value="'+g+'" color="CC99FF"/>' +
'<set label="Bad" value="'+b+'" color=" #00BFFF"/>' +
'<set label="Yet to be" value="'+n+'" color="#FF7F50"/>' +
'</chart>');
myChart.render("chartContainer1");
tot=parseInt(g)+parseInt(b)+parseInt(n);
d=parseInt(g)+parseInt(b);
/*alert(tot);
alert(d); */
var p=d*100/tot;
p=Math.round(p);
p1=p*5;
$('.pbar_fill').width(p1+'px');
$('.perc').html(p+"%");
$('.fin_no').html(d);
//alert(p);
},
error:function (xhr, ajaxOptions, thrownError){
alert("live error");
}
});
}
});
here for every 5 sec calling live.php page through get_status() function,if onclick on that verify button it will go to eoe_ajax.php page to verify emails which v sent to that page....but live.php is not execute untill eoe_ajax.php finished email verification....in eoe_ajax.php file v r using jar file inside eoe_ajax.php to verify email ids....
so i want to get live.php page for every 5 secs...pls help me...thanks...
live error(404) and afther clickjavascript error(also 404 because the pages don't exist)