adeoduye@hotmai
12-07-2006, 11:11 AM
Can anyone advice how I can use javascript to output the location of the file it is currently executing on and output locations of other files aswell?
My attempt to use ajax to load up files from a folder called private is yielding no results. With this line of code:
request.open("GET", "/private/new_index_ajax.php?login="+userID, true);
The request object is fine, it just doesn't seem to like the directory path. The originating php file is in the same directory as the private directory so there shouldn't be any need to navigate away?
So, I want to find out where javascript "thinks" it is. Perhaps it's looking in the wrong place(s)?
I hope this make sence. Please help me.
My attempt to use ajax to load up files from a folder called private is yielding no results. With this line of code:
request.open("GET", "/private/new_index_ajax.php?login="+userID, true);
The request object is fine, it just doesn't seem to like the directory path. The originating php file is in the same directory as the private directory so there shouldn't be any need to navigate away?
So, I want to find out where javascript "thinks" it is. Perhaps it's looking in the wrong place(s)?
I hope this make sence. Please help me.