Wrap html/css/js in a webkit executable? - javascript

I'm looking to make an executable that will open my web project in a (frameless?) executable, and I'm coming up short on a solution.
The request is simple: I want to be able to package my html/css/js project for distribution. I would like for the renderer to be either webkit or firefox.
Have any of you seen this technology in the wild?

Awesomium is exactly what you're looking for.
I've been using it (the .net distro) for about a year now with great success. It also comes in mac and linux flavors. I'd highly recommend it. Best part is that its free for Indies! :D

http://techblog.netflix.com/2010/12/why-we-choose-html5-for-user.html?m=1
Netflix is doing it for PS3 for example.

Related

Can Javascript be scripted into xcode?

I am writing a dev tool and I have no experience with Objective-C or Xcode, currently. I am trying make it cross platform and therefore, I will be using the native programming language for each platform that it supports. I am thinking about using Javascript for the user to script in. I am wondering if Objective-C is the best language for this or are there any better options for cross platform development. Though, please bear in mind that I can use different programming languages for the different platforms supported. I am thinking about using a Python and/or Java for the supported desktop platforms including Win, Mac, Linux. And Objective-C for iPhone and iPad.
To summarise my question, how can I use Javascript code in Objective-C, even if that means it uses third party libs. I don't mind it, if its compiled with Objective-C or interpreted. Compiled Javascript is probably preferable for better performance. Btw I only want to use objective-c for iOS.
Did you see the links below?
1)Using JavaScript From Objective-C
2)Scripting with JavaScript in Cocoa
I think these will help you.
I think these days there is the JavaScriptCore Framework that is provided by Apple.
The Apple documentation on how to use it isn't great but there is a wonderful article by NSHipster that gives step by step instructions

Desktop HTML + CSS + JS application? How this is possible?

I've recently fell in love with Nitro (http://nitrotasks.com), but what got me very curious was that it was written in HTML, CSS and Javascript, yet, it is packaged as a multi-platform binary! How is this possible? Which toolkit are they using?
Based on their Launchpad repository for Ubuntu, they are using Quickly.
For Chrome and Firefox, based on the Nitro GitHub page, it seems that they are just deploying it as a browser plug-in.
I just checked the Nitro website, and it doesn't look like it is a multi-platform binary, after all. It looks like they have a version for Linux/Ubuntu, and also an extension (plugin) for Chrome. They also have a web version and a Firefox plugin, which isn't available yet.
Ok, this isn't exactly an answer to your question, but I am assuming you're asking because you consider doing a similar thing yourself in which case it might be worthwhile to check out http://appjs.org/ which makes exactly this possible. Please do realize a lot might change and you should only use that if and only if you're willing to adapt to those change in the future.

GUI Tool to test javascript

I am looking for GUI/Windows based tool to test my javascript code there instead of using firebug or other in-browser tool.
I want to play around with javascript language outside of the browser to learn more about it.
Has anyone come across such tool? I could not find one :(
Edit: I am looking for GUI/Windows based on which can be used even if I am not connected to internet and still play around with javascript.
I'm a big fan of jsFiddle.
jsBin is another option.
Microsoft Web Developer Express is free and has a great JavaScript editor and debugger.
If you're looking for something that you don't need to be connected to the internet for, why can't you just use your browser? I assume you've already got some kind of development platform now. Save to a local HTML file and view it on your local browser.
Do you not have some kind of a GUI development program like DreamWeaver or CODA or something like that? (I'm on a mac, so I'm not familiar with a lot of windows based programs).

Palm Pre and Visual Studio. Possible?

The development experience for the Palm Pre sucks, to say the least. At best you are working on JavaScript in Eclipse with the Aptana plugin. The intellisense you get is really, really dismal. You have to be looking at the documentation every 5 seconds.
I was thinking, Visual Studio really excels at JavaScript and intellisense. Has anyone succeeded at writing Palm Pre code in VS2008 with intellisense, which would require hooking in Palm's Mojo Library?
Is there a known way to hook in 3rd party non-source libraries to JavaScript in Vs2008?
I've been looking for alternatives to Eclipse, too, but so far it does not appear that anyone has done it. For myself it felt like too much work, so I just switched to working with several terminal windows open and a browser window to the documentation.
I'm a long time eclipse user but was disappointed in the eclipse environment for Pre - especially after using the Android SDK which hooks nicely into eclipse (then again the dev environment is Java there).
Have you tried Komodo? I switched over to it and the autocompletion is nice and the webos addon does a decent job. I don't have the professional version so I can't comment on the debugging capability which I'd love to have.
If you can tell VS08 you want to load the Mojo.js stuff, then it should work. I think you should be able to configure any custom tools you need for building etc. as well.
Personally I'd recommend you check out JetBrains' IntelliJ IDEA. They have really good JavaScript support and I've used it with some Pre-stuff as well.

I want to write a desktop OSX or Windows app in Javascript -- any experiences?

I'd like to write some small applications for Windows and OSX.
Portable is good. For instance, the simple TclKit solution for TCL would work well if I could stand to look at Tcl for any length of time.
I'm considering using Javascript + extensions -- I really like Javascript -- seems to me there should be some way to connect a Javascript engine to WxWin or even the Tk toolset -- it's been done for Perl, Python, Ruby, etc. Why not JS?
Any comments appreciated.
I would rather recommend using Adobe Air execution container, it offers way more capabilities / OS integration features compared to HTA of Microsoft or even XULRunner of Mozilla.
If you want to write a desktop app in Javascript, check out HTA: http://msdn.microsoft.com/en-us/library/ms536496(VS.85).aspx
Here is an example of an app that I wrote a long time ago in HTA: http://www.boltbait.com/htmleditor/
Hope this helps.
If you have experience with HTML+JS web applications, I'd recommend Mozilla XULRunner. It gives you native-looking interface widgets (every piece of Firefox interface is a XUL element), and a workflow similar to building HTML-based interface.
You define the interface using XUL, an XML-based language, so it's almost like writing HTML, minus browser incompatibilities and CSS (you can use CSS, but only if you want). All application logic can be written in JavaScript, but in XULRunner you can do a lot more in JS than in a browser (read/write files, execute system commands, make cross-domain XMLHTTPRequests, and a lot of other stuff).
More: http://xulplanet.com/
A lot of example applications: http://code.google.com/p/xulapps/
Mac OS X users tend to dislike applications that don't follow usability guidelines of the platform (menu must be at top of the screen, standard shortcuts & drag'n'drop must work, "OK" must be at right-hand side of alertboxes, no "Apply" button in prefs and so on).
With one-size-fits-all toolkit this may be very difficult to achieve.
The good news is that there's JavaScript<>Cocoa bridge that can be used to create stand-alone full-featured Mac OS X application in JS – just keep front-end and back-end of your application separate enough to be able to plug different UI for each OS.
Rhino would probably give you access to swing. Though, I don't know how much work would be involved.
On the other hand, building a swing app with JRuby is so easy even a sock puppet can do it, so it shouldn't be too hard.
Definitely if you want to implement it using JavaScript, Adobe Air is the way to go. You will even have support on Linux.
Give Titanium Appceletaror a look: http://www.appcelerator.com/.

Categories

Resources