Hi all,
This must be an obvious answer but I have never had much dealings in javascript/jQuery.
In short I have a php routine contained in an external file I wish to call via the client side and echo the returned php string into a HTML div
Here is my code to process the file:
this code is in the document ready section of my index.php header
The code runs fine and does as it should only now any buttons on my side that submit data to the server when used returns the user to a blank page with just the test.php result?
Any help appreciated,
Thanks
This must be an obvious answer but I have never had much dealings in javascript/jQuery.
In short I have a php routine contained in an external file I wish to call via the client side and echo the returned php string into a HTML div
Here is my code to process the file:
Code:
$('#top_info').load('test.php');
The code runs fine and does as it should only now any buttons on my side that submit data to the server when used returns the user to a blank page with just the test.php result?
Any help appreciated,
Thanks