helpchrisplz
asked on
jquery get url
Hi i am trying to get a jquery gallery to work in my favorite CMS.
it uses jQuery.get to load php scripts in. my problem is that it is adding the relative page URL to the request when loaing the php scripts:
in console it shows the attempted url as:
http://localhost/sites/castle/index.php/test/getImages.php?count=none
but getImages.php is located in:
http://localhost/sites/castle/packages/mason_gal/blocks/mason_gal/getImages.php?count=none
how can i make it take the site url and not the relative url?
i have tried using ../../ but this breaks
thanks!
it uses jQuery.get to load php scripts in. my problem is that it is adding the relative page URL to the request when loaing the php scripts:
jQuery.get('getImages.php?count=none',function(i){
in console it shows the attempted url as:
http://localhost/sites/castle/index.php/test/getImages.php?count=none
but getImages.php is located in:
http://localhost/sites/castle/packages/mason_gal/blocks/mason_gal/getImages.php?count=none
how can i make it take the site url and not the relative url?
i have tried using ../../ but this breaks
thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER