Why doesn't this call the php file I think it should?

KenHorse

Member
This is just test of something but it should work, right? (yes, jquery.js in the same directory as this php file. And this is also on Linux if that matters)

Code:
<script src="jquery.js"></script>
<script>
function myFunction() {		
       $.GET("otherphpfile.php");
	return false;	
}
</script>

<?php

 print"
 <script>
 myFunction();
 </script>
 ";
 ?>
 
JavaScript is a case-sensitive language (and jQuery), try:
Code:
$.get
 
And still no errors in the console?
Can you see the call in the network tab?
 
Back
Top