PHP/MySQL Freelance
mobile: +39 3489215204
This is my way to organize php for a simple jQuery frontend ajax based:
1.in a administration page include the php that generate html for each box
2.for each box setup behavior in Javascript
3.let each php manage POST request (for change/update) and GET request for show content

So in admin.php we could have something like that
<img src=”button.png” id=”btn_change” />
I lost some time to debug this
$("#link").click(function(){
$("#target").load('url/to/load');
});
The problem is on Internet Explorer (all version) that refuse to load data in #target, using $.get and innerHTML(data) do not help. The problem is with no well formed html! Internet Explorer refuse to load in dom a malformed html.
Thus
$("#link").click(function(){
$("#target").load('url/to/load');
window.open('url/to/load');
});