Is it possible with HTML 5 to read the clipboard (without using Java)?
Perhaps the HTML5 Core spec doesn't provide an API for accessing the clipboard, but one of the APIs in the HTML5 family of APIs does. It's called "Clipboard API and Events," and its currently (as of July 2011) a Working Draft. You can find the spec here:
http://www.w3.org/TR/clipboard-apis/
As for implementations, well, I couldn't find one just yet.
Update: As of Dec 2012, this API is still a working draft (dated Feb 2012). There still do not appear to be any working implementations, just a Flash-based workaround for text.
Yes you can use pure JavaScript for this, assuming a modern browser that implements the Clipboard API such as Google Chrome.Chrome Frame is available for IE support and I assume that Firefox will implement the Clipboard API fairly soon. You can only read clipboard data from paste events (such as Ctrl+V), but from that you can read binary data such as image data.
HTML Clipboard API jQuery Plugin and demo. This demo requires the Chrome browser.
No, there is no built-in API for accessing the clipboard. BUT you can use https://github.com/mojombo/clippy for accessing the clipboard. It's flash not Java, so it should be ok for you to use. The advantage is it works across all flash-capable browsers.
Related
I have looked at numerous posts that discuss embedding the Mozilla browser control in a VB.NET app, however they were all written many years ago and are incomplete, like: How to create simple browser with Mozilla ActiveX Control with VB.NET?.
I was able to have a little success (display an HTML file with CSS3 and JavaScript) by embedding cefSharp into my VB.NET app, but cefSharp adds hundreds of MB. One of the posts said they believed that the Mozilla browser control (v1.7.12) was an exact replacement for the VS 2019 .Net web browser control, but there was no information on how to make the switch. Please advise if the Mozilla browser control is a good alternative, and if so, point to a tutorial or other information for making it work...or is there another choice?
You must use 3rd party library for this. You can use either GeckoFx for Firefox engine, or CefSharp for Chrome engine.
I am aware of HTML5 specifications like WebStorage, IndexedDB API etc are still in progress. However, does anyone aware of good JavaScript editor that is aware of HTML5 API and can provide good auto-suggest/code-assist. I have tried Eclipse HTML Web Editor, it does auto-suggest some but not all (e.g. window.sessionStorage but not window.localStorage, window.indexedDB etc). Aptana Studio 3 recognizes less than Eclipse HTML Web Editor. I prefer Eclipse based as I am working on Java environment (will only try VS 11 as last resource).
Note: I am not looking for WYSIWYG/visual HTML5 tags editor.
I'm wondering how
<input type="text" x-webkit-speech speech />
Is there a speech recognition enging built into Chrome or is it accessing an underlying speech recognition facility in the operating system?
Yup, Chrome does speech recognition via Google's servers. But there's no reason that other browsers couldn't choose to implement it differently (for example using some speech recognition facility in the OS).
Balu, your link is actually a bit out of date. The latest Google proposal can be found here: http://www.w3.org/2005/Incubator/htmlspeech/2010/10/google-api-draft.html
Although speech recognition has been available in the Chrome dev channel for some time, it has not shipped yet and we're not yet sure when it will ship. We definitely want people to play with the API and offer feedback on it, but we don't think it's quite ready for prime time yet.
According to the code it sends the audio data as a POST request to:
https://www.google.com/speech-api/v1/recognize?client=chromium&lang=??&lm=??&xhw=??&maxresults=3
lm is grammar in the code, xhw is hardware_info which is optional according to a comment. The audio appears to be speex, x-speex-with-header-byte:
// Encode the frame and place the size of the frame as the first byte. This
// is the packet format for MIME type x-speex-with-header-byte.
It looks like it would be pretty trivial to modify the chrome code to use in your own app.
Update:
You also need to get a speech recognition API key and they are limited to 50 requests per day. There is no way to increase that limit - not even by paying.
There is an experimental fork of speexenc that can encode x-speex-with-header-byte MIME binary format, its referenced on the QXIP Wiki and is available on GitHub. Does the job fine by placing the size of the frame as the first byte of packets.
They are using their own API for speech recognition. Ex: sending a post request to there servers.
Speech recognition is a proposal by Google. https://docs.google.com/View?id=dcfg79pz_5dhnp23f5
The feature ships with Chrome 8+ and it looks like it sends the data to google servers to perform the actual recognition.
This feature now works on chrome 11 beta.
check this out..
http://slides.html5rocks.com/#speech-input
This might be of interest https://github.com/taf2/speech2text ruby bindings for the google speech to text API
Yes, Chrome does have built-in speech support through WebKit; just look at the Google homepage (which now has a microphone to the right of the search box). I wonder, however, if the Chrome team is working on Omnibox speech support. After all, Chrome is a WebKit-based browser!
I just confirmed this on my Chrome Cr-48, it works.
There is also a working group that produced http://www.w3.org/TR/xhtml+voice/ but I don't believe this is implemented in any browser except Opera.
Can HTML and javascript run offline like an application? I'm looking to running the webpage offline like silverlight OOB applications. But if the browser closes, I want some way to run the webpage again without going online. Is this possible?
The HTML 5 draft introduces mechanisms for a webpage to be used as an offline application although, obviously, as a recent draft spec this isn't supported by all browsers.
You can also File > Save As and just save an HTML file and its associated JS locally.
Google Gears provides the kind of functionality that you're looking for. Google themselves are planning on phasing it out in favour of HTML5's draft (see David's response) but I think you will find Gears more mature [for the time being, at least], and (perhaps importantly, if you're considering redistribution) more consistent across different browsers.
[Further edit:] The Adobe AIR runtime allows you to run HTML and JavaScript applications on the desktop.
I've asked myself if one can embed the google chrome browser engine in an own application. I'm using Delphi 2009. There's an IE ActiveX wrapper component delivered with the IDE. Also, there's a Firefox ActiveX component out there, but it's based on very old code.
I'd like to embed the chrome engine. Is there a way to do this?
Thanks in advance,
David
Google Chrome is basically WebKit layout engine + nice UI. And WebKit can be embedded.
There's also chromium embedded framework (CEF).
And finally, check out Awesomium.
Update 2:
A very good fit for this would be the new Electron Shell
Update:
As a commenter points out under this answer, this is no longer supported. For good reasons I guess.
Recently Google released the Chrome Frame active X for MS IE
see if that helps
http://code.google.com/chrome/chromeframe/
I've just release a pre-alpha version of CefSharp my .Net bindings for the Chromium Embedded Framework.
Check out source or grab bins and give me your thoughts: https://github.com/chillitom/CefSharp