How to make absolute reference a relative reference

Hi,
I will apologise in advance for my lack of tech speak but I am somewhat out of my depth here…
We have an old domain, where website files are stored, that directs files to the newer domain which we are eventually migrating to.
i.e. www.australianpoolfiltercovers.com.au
has all the files to run the website however most users find us at the newer site www.poolfiltercovers.com.au
If a customer tries to get a price from the pricing page of our old website at
http://www.australianpoolfiltercovers.com.au/QuoteFilter1.php
then everything works nicely, the page calculates the price at the bottom of this page and transfers that price to the top of the next page.
However, if a customers tries to do the same thing at the newer site (the one that actually comes up in any searches)
http://www.poolfiltercovers.com.au/QuoteFilter1.php
the price is not calculated at the bottom of the page and therefore not transfered to top of next page.
When I asked my ISP about this, assuming it was something on their end, I got the following reply.
" The issue is that you are using an absolute reference when calling the ajax query to update the page; specifically, http://www.australianpoolfiltercovers.com.au/getcustomcost.php?size=1000:1000:1000.
This works on the domain australianpoolfiltercovers.com.au but the cross site restrictions prevent the browser from loading the page on poolfiltercovers.com.au. This is not something the server can resolve. You should make the URL relative in the calling php."
So…it seems that I know what the problem is (no price calculation), I know what the solution is (make URL relative in the calling php) but I have completely no idea what to do to implement the solution!
Is this a simple take-out-a-forward-slash-somewhere thing to fix or do I need someone who knows what they are doing instead of my copy and paste technique?
I realise there is probably much more you will need to know to answer this question but I have o idea what you would want to know at this stage I’m sorry. Am I even asking this question in the right section?
Thanks
Chris

You have to find whatever place you put the AJAX request into, have a look at how the URL for the request is build and replace everything that has to do with your old domain to the new domain, or skip the domain completely. I would start with this file

http://www.poolfiltercovers.com.au/includes/ajaxcustomsize.js

and read resoruces about absolute and relative paths like this

http://webreference.com/html/tutorial2/3.html

Sponsor our Newsletter | Privacy Policy | Terms of Service