PDA

View Full Version : how do I make an html executable application?



kapi
August 4th, 2011, 11:06 AM
Morning all,

Have worked for a business in the past where they used html, javascript etc and converted a website to an html.exe. used for leaning accounting and business. The user downloaded the program and double clicked the exe to start.

I'd like to do something similar but for nurseries but for record keeping.

As I'm an opensource user I was wondering what I could use to develop a stand alone application that runs in a browser.

I code using html, php, javascript, mysql and css.

Anyone have any advice?

Thanks

hakermania
August 4th, 2011, 11:12 AM
Whola! I've never heard before for 'executable' sites.
I've heard for executables that self-extract and 'create' files (possibly a site, why not?)
Is this what you want to do?

kapi
August 4th, 2011, 11:19 AM
no sorry maybe I was unclear.

It's an application made with html and javascript etc that runs in a browser.

Once they have tested the links and forms work then the html code was converted to an html.exe file.

Once clicked it ran as a stand alone app within the browser.

I want to do the same but am unsure how to proceed.

hakermania
August 4th, 2011, 11:23 AM
no sorry maybe I was unclear.

It's an application made with html and javascript etc that runs in a browser.

Once they have tested the links and forms work then the html code was converted to an html.exe file.

Once clicked it ran as a stand alone app within the browser.

I want to do the same but am unsure how to proceed.

Thanks for letting me know that something like this is possible, I thought that you couldn't make an app with HTML, I thought it was pseudo-code... Only for designing things..

Tony Flury
August 4th, 2011, 11:28 AM
The only way i can think of doing this would be to make a self-extracting archive of the html images etc, and design your site in such a way that the site can be viewed by the browser as a local set of files.

Whether you can make self-extracting archives for Linux i am not sure, and if you can it wont be a ".exe" which is of course windows specific.

kapi
August 4th, 2011, 11:39 AM
No worries, thank you for your replies.

Maybe I'll just look at using another avenue maybe with php or java or something.

PaulM1985
August 4th, 2011, 12:08 PM
I was thinking of something that was a bit simpler. The installer puts all the html files in the right place and the "executable" is a program or script which just starts up the users web browser with the appropriate html file as an argument.

Paul

Yuzem
August 4th, 2011, 03:03 PM
Thanks for letting me know that something like this is possible, I thought that you couldn't make an app with HTML, I thought it was pseudo-code... Only for designing things..
Figuritas (http://yuzem.blogspot.com/p/figuritas-screenshots.html) is made that way.


No worries, thank you for your replies.

If what you want is a dynamic site you can do what I did for figuritas using thttpd:


sudo apt-get install thttpd

Then create a file with the following content and make it executable:

#!/bin/bash
mySiteFolder=~/mySite

cd $mySiteFolder
thttpd -D -T utf-8 -p 9008 -c '**.cgi' -nos &
xdg-open http://localhost:9008

Then by running that file your site should open in the default browser.
All files ending with .cgi will run like programs, for example you can make a file: ~/mySite/index.cgi
And put there:


#!/bin/bash
echo Content-type: text/html
echo
echo Hello World!
echo The arguments are $*

nvteighen
August 4th, 2011, 05:15 PM
Another possibility would be to write an ad-hoc very lightweight browser that opens those HTML files. I'm pretty sure you can use a GUI toolkit for the basic UI and then ask Gecko or WebKit do the parsing.

cgroza
August 4th, 2011, 06:10 PM
Another possibility would be to write an ad-hoc very lightweight browser that opens those HTML files. I'm pretty sure you can use a GUI toolkit for the basic UI and then ask Gecko or WebKit do the parsing.
That would be very easy. I have seen 50 line Python scripts playing Youtube videos. Webkit takes care of everything. You just need to provide a back/forward button.