JavaScript
function viewnext()
{
var kk =document.getElementById('timer').value;
var end_time ="2023-07-16 12:22:36";
$.ajax({
type: "POST",
url: "server_side_timer_ajax.php",
data:'end_time='+end_time,
success: function(msg){
if(msg==1)
{
alert("Please wait upto specified time limit");
}
else
{
if(12 0)
{
window.location="downloadable_student.php?id=8080&kd=MTE=";
}
else
{
alert("No Previous record available..");
}
}I am pursuing a course which contains slides to move on to next slide only after the timer value goes to zero and they have configured a end time variable only after that timer we can move on to the next slide. Kindly help to reoslve the issue

Mohamed Azarudeen ZRank #297 · 8.5K reputationPosted Jul 16, 2023, 4:56 AM EDT
Hi kishore
To move to the next slide after the timer reaches zero, you can modify the
successcallback of your AJAX call to redirect to the next slide page (downloadable_student.php?id=8080&kd=MTM=) using JavaScript'swindow.locationproperty.Here's an updated version of the
successcallback function:success: function(msg) { if (msg == 1) { // Timer has not reached zero yet alert("Please wait until the specified time limit."); } else { // Timer has reached zero, move to the next slide window.location = "downloadable_student.php?id=8080&kd=MTM="; } }Kindly accept if you find this answer useful thanks.
Kishore Raja4 reputationPosted Jul 16, 2023, 5:35 AM EDT
I want to move before the timer gets zero,,,as i could not wait for 10 mins for each page