My doubt is about general and not about imacros. I am using a site it contains totally 20 number of slides in each side server has determined a minimum seconds, only after that the expiry of the minimum seconds only we can move on to the next site for that they have created variable end_time it calculates and sums the duration of the slide. my doubt is how to move on to next slide using any code that reduces the timer or change the end_time in the site the code is mentioned below.
Code: Select all
<script>
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 < 17-1)
{
window.location="downloadable_student.php?id=8080&kd=MTM=";
}
else{
alert("Thanks, you have completed course successfully. Kindly submit your valuable feedback for further enrichments");
window.open("feedback_student.php?id=8080",'_self');
}
}
},
});
}
function viewprev()
{
if(12 >0)
{
window.location="downloadable_student.php?id=8080&kd=MTE=";
}
else
{
alert("No Previous record available..");
}
}
</script>