I've been searching around and nothing quite fits what I need. Here's what I'm trying to accomplish:
<a href="">TSConfig</a> <!-- When clicked, it loads tsconfig.php which contains a form and some php code into #main_content -->
<a href="">MVSN</a> <!-- When clicked, it loads mvsn.php which contains a form and some php code into #main_content -->
<a href="">Fulfillment</a> <!-- When clicked, it loads maint_fulfil.php which contains a form and some php code into #main_content -->
<div class="grid_3" id="main_content">
<!-- PHP CONTENT TO LOAD HERE -->
</div>
I have tried different variants of JQuery examples to try and make this work, however most examples contain pulling an id from with the .php file and manipulating the url somehow, which is something I didn't want to do.
Many thanks and I hope I explained it right.
$.load()?urlfor.load. It's calledmyURL. Check it out. Withit calls are as simple as:$('#main_content').load($.myURL('index', 'directory', 'file.php'), function(response, status, xhr) { /* this is a callback function for .load */ })