Run .EXE From HTML And JS? - html

I made an project in Visual Studio Express using C#, i compilled it into an .exe, it run normally. is there any way to run my app from HTML, i'm making an website for me.
EDIT: i think is better to make an download and user install the app. thanks for helping :D

No.
You could create a link to the file, and allow people to download it. Their browser may give them a choice to run it immediately or not.

The only I know of to this would be to run an Ajax request and have a server side file execute the file. You can't do it with straight javascript, but if you're willing to use a language like PHP you'll be able to execute a file on your server "using" javascript.

Related

How do we call c++ application from web on client side on linux

For example, a client has a c++ application, and trying to access web application on the browser. But the web application needs to run this application. I don't understand how we can call that application from web. I tried that solution https://askubuntu.com/questions/330937/is-it-possible-to-open-an-ubuntu-app-from-html . but it did not work. It only opens well-recognized apps. Can we use this technique to open c++ application and give them some argument, like ./abc -a password -b username.
If you find my question confusing, please let me know. I will try to explain more.
Short answer: no.
There are workarounds that would include registering link handlers, like the solution you tried, but you can't call a command line program from within a web browser directly (there are a million ways it could be misused).

Work with HTML coder

I am a rails backend developer and I am now working in a team with an HTML coder and I have some problems with information exchange.
I want him to generate all the HTML templates (haml, erb, whatever) and css files. But he has actually no clue on how to install ruby (and rails).
So, we are working now in this ugly workcycle when he puts all html's and css's in public, test them, and then I (myself) move them to correct place.
Is there a tool (for HTML codes) that mimics Rails rendering part so he will run this tool, which must be easy, and when the server starts, he can put all the templates to app/ and test them?
I see this as a small easy installable subset of rails, that only deal with page rendering.
If your coder still doesn't know how to install ruby or how to configure stuff for works , then I can say this is quite problematic . You either can try any cloud based IDE . Or , tools like git to get only raw stuff.
But , you also can look for someone who in minimum way will try to make the whole process possible by learning and installing ruby in their pc .
I had a similiar problem where a copywriter needed to play with the html and we ended up using Cloud9.
Cloud9 is a collaborative IDE in the cloud, IMHO It's pretty decent for small scale projects and can really get the job done.
I simply installed rails once and ran a local dev server and she did all the modifications and watced the preview.
Another option is to create a vagrant environment and preisntall rails there. This means the HTML coder would have to install a VM on his machine and run the vagrant there.

Easiest way to deploy an html page on a web server

I have an html file that I use to extract a locally stored sqlite database file's informtaion, using some easy javascript.
Now I want to access this web page through http protocol (not file:/// scheme).
What configuration do you recommend to easily realize this manoeuvre ?
Thank you in advance.
Your question is lacking, but in general you want a webhost or setup your own computer for external connections.
I recommend finding a simple hosting site and learning the procedure from there.
From the command line, navigate into your project folder, and run:
python -m SimpleHTTPServer
You can then open http://localhost:8000 in your browser, to view your page using the http:// protocol.
(I don't think this will work if your HTML file is actually PHP, which given that your description includes databases, it sounds like it might be. In that case, I would download something like MAMP.)
This answer assumes you're just trying to use the http:// protocol to test your page locally - like the other solution says, if you want to deploy your page so other people can see it, you'll need to find web hosting.

I want to transform xml into html and save the html. What is the easiest way?

I would like to use an xml file to create a html email. I can create an xsl file to convert it to html but I don't know how I can then save or copy the generated html. Obviously if I view the source of the xml file I just get the xml source, not the transformed html. What is the simplest or quickest way possible without me having to use Java or C# or anything like that? Is there a web service that can do it? I've googled but with no luck.
EDIT
If I have to do a bit of coding to do this then I could probably manage it in php, javascript, java, vbscript or possibly python. I'd be surprised if a tool to easily do what I want hasn't already been created and made available publicly though.
EDIT 2 - Solution found
I've discovered that clicking 'View generated source' in the Web Developer toolbar of Firefox shows me the html. This is all I need, I can then copy and paste this. I'd still be interested to hear if anyone has any better suggestions though...
What you probably need is an XSLT-Processor.
On most Linux machines xsltproc should be available at the commandline (or be easily installed with 'sudo apt-get install xsltproc').
On Windows msxsl should be the right commandline tool (I didn't test it).
You could create a WinForms app and drop a WebBrowser control on it, though I'm not sure if that will let you save the rendered page without any user interaction.

How to run .aspx file for a beginner

All,
I have very limited knowledge of .aspx and ultimately what I want to do is exactly this:
http://www.webonweboff.com/widgets/ajax/ajax_linked_selection.aspx
I appreciate the code is given in the link above, but I am only familiar with HTML and Javascript so when it starts to tell me .aspx and .cs code I get a little lost. Have done my homework and I guess i need to install something to run these programs. Naively, I only have notepad++ at the moment.
Any help would be greatly appreciated
Joe
Your best bet is to go to http://www.asp.net/downloads and click the big green Install Now button. This will use the Microsoft Web Installer to download everything you need to get started with ASP.NET development (including Visual Studio Express which will take the place of notepad++!).
Try installing visual web developer and create ASP.NET wesite in C#. You should be able to run these files.
http://www.microsoft.com/express/Web/
Also try going through these tutorials
http://www.asp.net/web-forms
ASPX is like CGI programming. Yes you need to install the ASP.NET developer studio in order to deploy your web application. It will then configure a default webserver on your local host where you can start playing with the code samples.