I have one root folder www having one folder named myweb in which two pages raw.php and ripe.php exists.Now my raw.php script code\[code\]<script> $.get("ripe.php", function(result){ $("body").append(result); });</script>\[/code\]is not working .The working code is\[code\]<script> $.get("myweb/ripe.php", function(result){ $("body").append(result); });</script>\[/code\]Now I want to know why it is taking url from root folder in jquery.and how can i make it to take url with respect to current folder