Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Javascript Compiler Question

    Hi I have a site that I made that uses Javascript and HTML, is there such a thing as a Javascript/HTML compiler that will essentially take the site and make it into an executable file?

    Please send me any references on this subject if you can..

    Thanks!

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,899
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by theflyingminstr View Post
    Hi I have a site that I made that uses Javascript and HTML, is there such a thing as a Javascript/HTML compiler that will essentially take the site and make it into an executable file?

    Please send me any references on this subject if you can..

    Thanks!
    No. JavaScript is interpreted by the user's browser, as is HTML.

    And before you ask, there is no way of "protecting" your Javascript or preventing others from viewing it.

    Our advice and assistance are packaged by intellectual weight, not volume.
    Some settling of contents may have occurred during transmission.
    Last edited by Philip M; 08-25-2007 at 06:53 PM.

  • #3
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Quote Originally Posted by theflyingminstr View Post
    Hi I have a site that I made that uses Javascript and HTML, is there such a thing as a Javascript/HTML compiler that will essentially take the site and make it into an executable file?

    Please send me any references on this subject if you can..
    That depends a bit on what you mean by "executable file". You can create an .MHT (--> MHTML --> MIME HTML --> Multipurpose Internet Mail Extension HTML) file so that the HTML, CSS, JavaScript and other external files are bundled together.
    That is not an executable however, it's just all the files bunched together according to the MIME standard (same standard as is used in rich-text (HTML) mail), and interpreted by Internet Explorer or Opera. (IIRC none of the other browsers have full support for MHTML yet...)

    Adobe Apollo can be used to create "offline sites" that can run on the Adobe Apollo runtime. If those are compiled or just bundled in an archive, I don't know.

    I also think Microsoft SilverLight (formerly WPF/E, Windows Presentation Foundation Everywhere) can do something similar, but at least for version 1.0 those are not compiled.



    Both the latter require that users have those runtimes installed, however.




    Edit: I forgot: For Internet Explorer on Windows only, you can create a .HTA file (HyperText Application), which is kinda like an executable. It's still not compiled, however.
    Last edited by liorean; 08-25-2007 at 10:10 PM.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #4
    Regular Coder
    Join Date
    Jul 2007
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for responding. I'm not necessarily looking to protect the files, I just want to make it possible for people to download my web site as an executable file.

    There's no way I can transfer the data into another format and then compile it?

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,593
    Thanks
    0
    Thanked 645 Times in 635 Posts
    The closest thing to what you are looking for is Adobe Integrated Runtime (which used to be called Apollo)
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •