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.

directory

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:

cry

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

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -