Can I use jsOAuth from a ASP Classic page (JScript)? -


OAuth - The Javascript library to call.

The available examples that are being used are also being used in the browser, there are some examples that show how to node it. Use from JS.

Can it also be used from ASP Classic / JScript?

The main examination will be:
Can jsOAuth be used to post a Tweet on behalf of a user from ASP Classic Pages?

No, I do not think so.

There are some problems in the library that prevents it from being used in the JavaScript from the ASP-Classic page.

  1. The original syntax of the library considers a requirement package and a famous export variable. These conventions are not present in the ASP Classic. Also it directly specifies the global "this" object, which is

  2. jsOAuth considers the presence of the map method on all array types

  3. from the JSOTH XMLHttpRequest constructor Instant directly to XMLHttpRequest examples. This creator is available in the JavaScript browser in the modern browser, but it is not available within ASP-Classic. The library can come back to the New ActiveXObject ("MSXML2.ServerXMLHTTP") but it is not.

  4. The library accepts asynchronous XMLHttpRequest operation. In a browser, it works just fine But in the ASP-Classic page, the page process ends , which means that asynchronous calls are pending in ASP classic environment, it will be necessary to make synchronous calls to the OAuth-protected service provider.


    The other major obstacle to using it within the ASP classic outside of the box, is the lack of appropriate documents and examples.

    It is possible to allow the library to be used in ASP Classic; I have put together a modified version. I'll post it soon

Comments