locked
What is the microsoft tool or any other tool to convert the javascript file to dll ? RRS feed

  • Question

  • Tool to convert .js file to .dll ?
    Thursday, June 13, 2013 5:51 AM

Answers

  • Hmm I believe this is not possible since each have a different set of architecture. One works on the client side and the other one on the server side so I believe no such tool would exist.

    You could in a way write the javascript codes to a VB or C# class and build a dll out of that but I guess the functionality would not work as I've mentioned the JS code is designed to work on the client side while a VB or C# class is designed to work server side.

    You could also call a javascript code from code-behind through PageRegisterClientScript but this would only work on a code behind of a .aspx file


    Artificial intelligence can never beat natural stupidity.

    • Proposed as answer by MikhailSP Thursday, June 13, 2013 9:48 AM
    • Marked as answer by Hemendra Agrawal Thursday, June 20, 2013 6:15 AM
    Thursday, June 13, 2013 8:05 AM
  • I think we should seperate out what you want to achieve.

    • Is it possible to convert JS into a DLL?  Yes
    • Is there a tool that'll do it?  Not a ready made one

    Mikel is right; the differences between a server side DLL and an interpreted language might be too big to cater for in a toopl.  If such a tool exists, you'll need to pay for it. 

    I've had a look and see something that may be of interest for you

    1. An example of embedding css into a DLL (same concept) http://forums.asp.net/p/938915/1118946.aspx
    2. You could embedd the JS code / files in an exe and then call that from your DLL https://developer.mozilla.org/en-US/docs/SpiderMonkey/JSAPI_User_Guide?redirectlocale=en-US&redirectslug=JavaScript_C_Engine_Embedder%27s_Guide

    Another useful link m,ight be this one, where this very same topic is discussed.

    http://bytes.com/topic/javascript/answers/767730-convert-javascript-file-exe-dll


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/

    Thursday, June 13, 2013 11:38 AM
    Answerer

All replies

  • Hmm I believe this is not possible since each have a different set of architecture. One works on the client side and the other one on the server side so I believe no such tool would exist.

    You could in a way write the javascript codes to a VB or C# class and build a dll out of that but I guess the functionality would not work as I've mentioned the JS code is designed to work on the client side while a VB or C# class is designed to work server side.

    You could also call a javascript code from code-behind through PageRegisterClientScript but this would only work on a code behind of a .aspx file


    Artificial intelligence can never beat natural stupidity.

    • Proposed as answer by MikhailSP Thursday, June 13, 2013 9:48 AM
    • Marked as answer by Hemendra Agrawal Thursday, June 20, 2013 6:15 AM
    Thursday, June 13, 2013 8:05 AM
  • Thanks  Mikel ....................you r right that....both have a different set of architecture.

    But this is possible. We can convert .js to .dll. I am still searching that tool .

    Thursday, June 13, 2013 11:20 AM
  • I think we should seperate out what you want to achieve.

    • Is it possible to convert JS into a DLL?  Yes
    • Is there a tool that'll do it?  Not a ready made one

    Mikel is right; the differences between a server side DLL and an interpreted language might be too big to cater for in a toopl.  If such a tool exists, you'll need to pay for it. 

    I've had a look and see something that may be of interest for you

    1. An example of embedding css into a DLL (same concept) http://forums.asp.net/p/938915/1118946.aspx
    2. You could embedd the JS code / files in an exe and then call that from your DLL https://developer.mozilla.org/en-US/docs/SpiderMonkey/JSAPI_User_Guide?redirectlocale=en-US&redirectslug=JavaScript_C_Engine_Embedder%27s_Guide

    Another useful link m,ight be this one, where this very same topic is discussed.

    http://bytes.com/topic/javascript/answers/767730-convert-javascript-file-exe-dll


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/

    Thursday, June 13, 2013 11:38 AM
    Answerer