javascript - AJAX loading files that use global resources, causing GET errors -
my project uses mvc style coding, have main controller (index.php) loads in modules need subfolders, support/support.php, profile/profile.php, etc.
in each of subfolder files (like profile/profile.php), use resources js/ , css/ in main folder.
the problem when load these via jquery.load(), , index.php grabs these requests like:
<link rel='stylesheet' href='../css/master.css' type="text/css"/>
which causes errors these:
any idea how fix this? change div use loading iframe , fix it, i'd rather not.
how stop index.php reading href="../css/master.css" , other resources used subfolder files?
thanks!
you can try this
<link rel='stylesheet' href='../../css/master.css' type="text/css"/>
Comments
Post a Comment