Using $.ajax(), when you set a 'complete' callback function, the XHR
object should be provided for you, which you're able to use to get the
response headers.

On Jul 16, 3:56 am, jeanluca <lca...@gmail.com> wrote:
> $.ajax({
>   type: "GET",
>   url: my_url,
>   async: false
>
> }).getAllResponseHeaders() ;
>
> On Jul 16, 11:31 am, jeanluca <lca...@gmail.com> wrote:
>
> > Hello
>
> > I want to access the headers of pages I load through ajax. However I
> > don't know how to do this with jQuery
>
> > First of all, I'm only interested in the headers, not its content, so
>
> > $('#someID').load("somefile.html") ;
>
> > is not really what I want.
>
> > Is there a way I can get the XMLHttpRequest object so I can do
>
> > xmlDoc.getAllResponseHeaders()
>
> > Thnx in advance
>
>

Reply via email to