Hi, I'm using Oauth JavaScript Library and jQuery. In the first step, I'm trying to request token. This is what I do:
var urltw = "http://twitter.com/oauth/request_token"; var datasend = null; var accessor = { consumerKey: "my_key_here", consumerSecret: "my_secret_here" }; var message = { action: urltw, method: "GET", parameters: { oauth_nonce: null, oauth_signature_method: "HMAC-SHA1", oauth_signature: null, oauth_timestamp: null, oauth_version: null } }; OAuth.completeRequest(message, accessor); OAuth.SignatureMethod.sign(message, accessor); datasend = OAuth.formEncode(message.parameters); // send request to 'url' $.ajax({ url: urltw, data: datasend, dataType: "text", async: false, success: function(reslt, stat, obj){ $("#result").append(reslt); } }); Monitoring through wireshark, I see twitter is responding fine, with the token, secret, etc. However, in the browser, "reslt" is always blank in the success function. I have used firebug to look into "obj". The answer is not in there. So, that's the problem: wireshark confirms that the answer is correct, however I can't see it into the browser. I'm running this script in Firefox, locally (opening the file directly, not using a server). Anybody knows how to read the answer in the browser? -- 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.
