I have a question on folder and file links.
Here's my folder structure:
--------------------root--------------------
------------project01----------------------|----------project02------------------folder level 1
p1.html---CSS--JS--PHP---Config---|--p2.html---CSS--JS--PHP-----folder level 2
----------css1---js1---php1---config---|--------------css2---js2---php2-----file level
I know how to link css1 and js1 to p1.html. But I don't know how to link php1 to js1 which has ajax. So up a folder then go into PHP folder. Also, php1.php includes config.php. Basic relationship is p1.html->js1.js->php1.php->config.php
There are what I have tried for the ajax url:
url : "../project01/php/php1.php"
url : "/project01/php/php1.php"
url : "project01/php/php1.php"
And none worked. Only way I can get it to work is by putting the php files in the project01 folder where the index1.html is, and just call
url : "php1.php"
Also, what if I want to link css1 to p2.html? How do I do that?