I use PHP and jQuery and here is my code (that works so far).
$(".design").load("<?php echo get_bloginfo('url'); ?>/?addmod_ajax=1",{
menu: 'layout',
});
This is what I want to do.
If the PHP-file I’m calling find some values in a PHP array (on the server side), I want the jQuery to append (add) some content to the HTML element. Is it possible to make callbacks like that?
It’s important to me that I can still send my POST variables to my PHP file.
As @yoda said in a comment you can use $.ajax() to acomplish this as shown below:
you can swap type for
POSTif you need to