Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #13118

Re: Safari XHR Error

Date 2012-03-29 14:26 -0500
From MC <news@aisus.com>
Newsgroups comp.lang.javascript
Subject Re: Safari XHR Error
References <4bd1f$4f7476a3$cf9b42fc$12752@ALLTEL.NET> <999c1$4f749935$cf9b42fc$31069@ALLTEL.NET> <jl29gi$nei$1@dont-email.me>
Message-ID <5527e$4f74ba3d$32601a7e$16566@ALLTEL.NET> (permalink)
Organization UseNetServer.com

Show all headers | View raw


On 3/29/2012 1:26 PM, Gregor Kofler wrote:
> Am 2012-03-29 19:05, MC meinte:
>> I found a solution for the problem.
>>
>> It seems that Safari will accepts a relative URL for the XHR but does
>> NOT post it to the root domain. Setting the the the URL to
>> "https://mydomain.com/ws/myaction.jsp" worked. It appears Safari was
>> posting relative, ie, my calling resource is located at
>> https://mydomain.com/someDir/somePage.html such that a URL of
>> "/ws/myaction.jsp" is posted to
>> "https://mydomain.com/someDir/ws/myaction.jsp".
>>
>> None of the other browsers do this..bug???
>
> They are only forgiving and assuming:
>
> http://www.w3.org/TR/XMLHttpRequest/#the-open-method
>
> The draft requests a _URL_
>
> <http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#url>
>
> Gregor
>
>
Gregor,

The RFC3986 regarding URL's regards a relative URL references as valid, 
if there is a - "'base URI'" exists against which
    the relative reference is applied".

It appears that Safari does indeed have a bug as it resolves the base 
URI differently (incorrectly) from the other browsers.

MC

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Safari XHR Error MC <news@aisus.com> - 2012-03-29 09:37 -0500
  Re: Safari XHR Error Tim Streater <timstreater@greenbee.net> - 2012-03-29 15:45 +0100
    Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 10:04 -0500
  Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 17:22 +0200
  Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 12:05 -0500
    Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 20:26 +0200
      Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 14:26 -0500
        Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 21:54 +0200
          Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 15:24 -0500
    Re: Safari XHR Error Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-03-29 22:28 +0200
      Re: Safari XHR Error David Mark <dmark.cinsoft@gmail.com> - 2012-03-29 18:06 -0700
  Re: Safari XHR Error "Richard Cornford" <Richard@litotes.demon.co.uk> - 2012-03-29 21:39 +0100
    Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 16:07 -0500
      Re: Safari XHR Error Scott Johnson <noonehome@chalupasworld.com> - 2012-03-29 17:30 -0700
      Re: Safari XHR Error "Richard Cornford" <Richard@litotes.demon.co.uk> - 2012-03-30 01:46 +0100
      Re: Safari XHR Error David Mark <dmark.cinsoft@gmail.com> - 2012-03-29 14:54 -0700

csiph-web