I would like to use javascript to develop general-purpose GUI applications. Initially these are to run on Windows, but I would like them to ultimately be cross-platform.
You could try to combine something like SUN's Lively Kernel with Mozilla's Prism.
Lively Kernel is a GUI Stack written entirely in JavaScript using SVG for display purposes.
Prism is a way to launch web applications without showing the browser in which they run.
Very bleeding edge though, use at your own risk. :-)
You can use the rhino JavaScript interpreter from Mozilla. It allows JavaScript to access any of the Java libraries, including Swing for GUIs. http://www.mozilla.org/rhino/
Try AIR, you can even use your JS toolkit of choice Using it with dojo look at this: http://dojocampus.org/content/2008/04/02/dojo-on-air-a-fancy-file-uploader/
XUL Runner might be an answer, but I'm afraid I can't speak from experience.
Well, if you didn't want your software to be cross-platform, then you had two options on Windows:
.hta
(tutorial).wsf
format, to mix JScript and VBScript and run them with cscript.exe
/wscript.exe
(example)Notes:
mshta.exe
under the hood, so I don't think it suffices your requirements.SUB
s to get GUI elements.P.S. A great tutorial about WSH, WSF, VBScript, JScript ... here
JScript .NET might be able to do it. It was intended for ASP .NET and .NET may not be cross platform the way you want it. However, more interest might create more development.
JScript .NET: http://msdn.microsoft.com/en-us/library/ms974588.aspx