Byepass Serverside Time using JS

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
raja01308
Posts: 14
Joined: Sun Jul 02, 2023 3:33 am

Byepass Serverside Time using JS

Post by raja01308 » Mon Jul 17, 2023 3:37 am

Hello guys,

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>
Post Reply