On Thu, Apr 30, 2009 at 12:04 AM, Lachlan Hardy <[email protected]> wrote: > >> 2) I am using JQuery for my Ajax calls, which seems to support cross- >> domain XHTTPRequests. If I send my OAuth requests using JQuery will >> that solve the cross-domain issue (if there is one)? > No. jQuery's cross-domain Ajax calls use a variable callback that > jQuery determines for you - so you can't sign it with OAuth, cause you > don't know what it is.
but you could do without a callback, asking the user to proceed (eventually asking him to input the token/pin/whatever is needed to close the loop) i.e. you need to treat the js application as if it was an installed app without callback capabilities. N.B. I'm not saying that this is what the OP should to do, probably solving the timeout problems is better in his case, but this is what could be done in applications implemented entirely in javascript (and using jQuery for cross domain XHTTPRequests). Luca --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~----------~----~----~----~------~----~------~--~---
