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

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

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -