Hi folks This is the basic loadContent function
function loadContent() { $("#myContent").load("mypage.php"); } This works fine if I'm in the root of my website: domain.com/page.php however I have several rewritten urls (mod rewrite) on the site with paths such as: domain.com/folder1/page.php domain.com/folder2/page.php domain.com/folder3/page.php all of these urls are rewritten to use a template file in the root of the website, i.e.: domain.com/subfolder-template.php?folder=1 When I view the template page above directly the content is loaded into the div correctly, however when viewing the page via a rewritten url I receive an 'Object Expected' error, i.e. mypage.php is not being loaded into the div as it can not be located. I've tried adjusting the path, i.e. $("#myContent").load("../mypage.php"); $("#myContent").load("/mypage.php"); etc, but consistently receive the same error message. Does anyone know how I can resolve this? Thanks