[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-30 Thread TheBlueSky
Unfortunately my data isn't of type JSON, so I guess I'll go with the Proxy option. Anyway, thanks alot for the help :) On Nov 30, 2:49 am, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Oh and I because of the fact that a script tag is used the only > arguments that can be passed in are "GET" type ar

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-29 Thread Karl Rudd
Oh and I because of the fact that a script tag is used the only arguments that can be passed in are "GET" type arguments in the actual URL. Karl Rudd On Sun, Nov 30, 2008 at 9:48 AM, Karl Rudd <[EMAIL PROTECTED]> wrote: > You can get around it by using a JSON (or JSONP) response. For > cross-dom

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-29 Thread Karl Rudd
You can get around it by using a JSON (or JSONP) response. For cross-domain JSON calls a script tag is inserted and the content is "read" that way. Karl Rudd On Sat, Nov 29, 2008 at 11:17 PM, TheBlueSky <[EMAIL PROTECTED]> wrote: > > Oh, sorry, my mistake! Yes, it's on another domain and I've ju

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-29 Thread TheBlueSky
Oh, sorry, my mistake! Yes, it's on another domain and I've just noted that. By the way, there is no way around this, is there? On Nov 27, 3:40 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Is the page/resource in another domain? That would obviously not work. > That's the only thing I can think

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-27 Thread Karl Rudd
Is the page/resource in another domain? That would obviously not work. That's the only thing I can think of. Karl Rudd On Thu, Nov 27, 2008 at 9:20 PM, TheBlueSky <[EMAIL PROTECTED]> wrote: > > Thanks for your reply. > > Sorry that my question wasn't clear enough; I already tried using the > use

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-27 Thread TheBlueSky
Thanks for your reply. Sorry that my question wasn't clear enough; I already tried using the username/password options for ajax() method, however, I'm getting 'Permission denied to call method XMLHttpRequest.open' kind of message. I don't know if there is something else need to be done or not. B

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-25 Thread Pierre Bellan
Hi, If the authentification is form-based, then the login credentials is passed by GET or POST. So you just have to add it to your ajax request see the data option. $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Sav