Inconsistencies with relative file paths in JavaScript files -


the folder structure of local version site exact same on server, yet have change paths in 1 of js files from:

url: "includes/user_process.php" // testing 

to

url: "../includes/user_process.php" // live 

these part of ajax call. live version url makes sense me, directory structure contains js folder , includes folder--so you'd move 1 folder w/ '..' , includes. php files work consistently development deployment using same directory paths.

having change file every time deploy pretty irritating , i'm sure it's simple i'm not picking on. appreciated.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -