javascript - Path from js file to the root folder -
javascript - Path from js file to the root folder -
i have 1 problem script. when have script code in script tags within html file, works when transfer code .js file, stops working.
this part of script js file:
$.ajax({ url: "test.php", type: "post", data: values, success: function(data){ $("#result").html(data); homecoming data; }
well, when in folder of js file alter url to:
url: "../test.php"
and tried
url: "/includes/test.php"
none works. missing here?
you have alter path of url parameters.
url: "test.php"
instead of have give path web directory www like:
url: "/folder_name/test.php".
where /folder_name
name of folder in www folder till test.php
hope work.
javascript php
Comments
Post a Comment