jquery load php file - result is not complete

Posted by Mark Nolan on Stack Overflow See other posts from Stack Overflow or by Mark Nolan
Published on 2010-02-09T05:05:18Z Indexed on 2010/04/24 14:53 UTC
Read the original article Hit count: 250

Filed under:
|
|
|
|

I'm trying to load or better reload a DIV with content from an included php file. so the file is included in the webadmin.php from the location webadmin/pages.php. Then i alter some data in the DB through serializing.

Now I would like to reload the pages.php from the callback of the serialize POST with load();. This all works fine up until the moment the data is supposed to be displayed in the div - i believe its because the php file is loaded from a different location, so the include paths for the DB Connection etc are probably wrong...

Should I really write an extra PHP File for jquery or is there a way to tell jquery where to load it from?

Its the first time I'm doing this - so bear with me for a moment on this one... Thanks!

I guess it wont be much use, but heres the load code:

$("#right").load("webadmin/pages.php");

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about load