Hi
i am writing following code in a javascript file create.js
YAHOO.util.Connect.asyncRequest ("GET", "custom/modules/Accounts/file1.php?accountID="+id, callback);
From this js file using ajax i am sending request to a php file file1.php
Both files file1.php and create.js are at same place custom/module/Accounts
But server error(404) is coming that. i.e i am unable to call php file from javascript here.
When i am putting file at <root> there is no problem.
So how to write URL in ajax when both js and php files are at custom/modules/<module-name>
Please any body give me some idea !!
Thanks


LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks