Problem while using load() (not the same result as PHP require() )
Hi,
I have a problem with load(), I use it this way :
- $('#photosets_content').load('photos_content.php');
But the result is very strange, it's like the jQuery functions of those pages are not taken in account.
I tried to insert the js including once again (call jQuery and my js.js page where I have my functions) but it doesn't change anything.
Just for a try, I replaced the function by php's function require(), and it works perfectly well, no more CSS or JS error.
What could be the problem ?
I tried that as well, and it didn't work :
- $.ajax({
url: "photos_content.php",
cache: false,
success: function(html){
$("#photosets_content").append(html);
}
});
Thanks a lot,
Best,
Nicolas