I look at one really great instrument for modal windows – TinyBox2
There is option for ajax request from another url.
Ajax option need to define url from which content will be loaded.
But url (as I understood) must be relative to the current url (e.g. if you are here: http://www.example.com/user and you want to make ajax request, you must specify url option as ‘some.html’ and it must be available at http://www.example.com/user/some.html).
But I need url to be relative to the base domain url (e.g. http://www.example.com/some.html)
How to do that?
It seems to work fine if you do this:
instead of this:
Notice the slash in front of ‘some.html’ in the first version. That tells it to retrieve something from the server root, rather than the current location.