New to Ajax/Jquery. Simple test page request and Android Devices

I have been reading about Ajax recently and tried to implement a simple test page. The page load fine on my iMac running safari, but when tested on my android device phone nothing seems to happen.

I have a div with the ID proper name (as it works on my mac as stated before, but not on the actual mobile)

<script type="text/javascript">

	$(document).ready(function() {
		
		$.ajax({
			type: "GET",
			url: "./updatebasket.php",
			success: function (updatemybasket) {
					
				setTimeout(function () {
						
					$('#BasketContent').html(updatemybasket);
						
				}, 100);
			} // -end .success- (updatemybasket)
		
		
		}) // -end .ajax (Update Basket Count 1)- 
		
	});

</script>

Anyways! Thank you in advanced :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.