Linking javascript BASEDIR
- by Azzyh
Hello.
So continue from this:
http://stackoverflow.com/questions/2715295/linking-how-php-html
Please check the answer i accepted, and i used the "BASEDIR" solution zneak came with.
Now i ran onto another problem.. in my ajax_framework.js i have:
$.ajax({url: "session.php", success: function(data){
how should i include BASEDIR onto this? i was thinking something about:
$.ajax({url: "'.BASEDIR.'session.php", success: function(data){
but this isnt PHP, so i think you cant? no? any help or maybe another method to come around this?