MC said:
I have searched and found references by pointy-ears and Cornfed […]
Please do not feed the troll (adjust your score-/killfile instead).
A troll, you say? Would that be the person who asked a legitimate JS
related question, or the one who tried to divert replies to
alt.my.little.pony?
I'm sure most readers of this group are able to make their own decisions
about how to score posters. We generally don't feel the need to announce
every filter adjustment in our postings, however.
Back on topic...
@OP: Yes, it is possible to use relative URLs in the XHR's open()
method. The URL will be resolved relative to the base URL of the current
document/window (see the XHR specification(s) for details).
If the current URL uses the "https" scheme, you should be fine. If the
scheme, domain, or port parts of the URL you want to request differ from
the current base URL, you're going to run into problems with the
browsers' same origin policy. But in that case, there's not much point
in using relative URLs, anyway.
There may be ways to relax this restriction, but I'd need to know more
about your use case before I can recommend one. Please also describe
what you have already tried and what did/didn't work for you.
Duly ignored.
- stefan