
Originally Posted by
manoogim
yes you are correct.
on my localhost i was using a different root in javascript , other than ieademo :
sendRequest('/ieademo/htdocs/process.php? ') etc ..
is there a property in javascript that can detect under which context root the app is deployed ?
so in this case it would return 'ieademo' and i could build the path at run time.
var root = <get via js at run time>
sendRequest(root & '/htdocs/process.php? ')
Put this in a php file and run it:
PHP Code:
<?php
echo $_SERVER['document_root'];
?>