Link to home
Start Free TrialLog in
Avatar of helpchrisplz
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:

jQuery.get('getImages.php?count=none',function(i){

Open in new window


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
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of helpchrisplz
helpchrisplz

ASKER

thx