How does google copy link to clipboard in Docs? - clipboard

I've read all the stuff about how it's no longer possible to copy to clipboard with a click, and the clever ways that folks like Trello are making do without this functionality... but then Google just updated Docs with the exact feature we're looking for:
How do they do it?

Might be the new execCommand api for contentEditable areas.
Documentation : https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#Browser_Compatibility
IE 10+, Chrome 43+, and Opera 29+ support these commands.

Related

Firefox presentation api support

As a result of the dicussion on
What needs to be done to make multiple screen support for Javascript happen?
i am looking into the state of affairs with Firefox and found this issue
https://github.com/mozilla/standards-positions/issues/180
As it looks it's possible to use the API on Firefox. I'd like to test this.
What environment would be needed for this to show an example?

What is the alternative for window.performance.getEntries(); in FireFox and Safari?

IE and Chrome offer window.performance.getEntries(); to get information about performance of entities in a webpage.
In both FireFox and Safari, this command is undefined when I try to use it from the console.
So, my question is: what is the alternative in FireFox and Safari for this functionality?
EDIT:
I'm using this command via Javascript. Hence I need an alternative also for other browsers.
CanIUse says something for resource timing (which is part of what youre asking): http://caniuse.com/#search=resource timing
Also it says
This feature can be enabled in about:config, search for dom.enable_resource_timing flag
By default it is turned off, you'll have to ask your users to switch it on manually, or to write a plugin for this purpose
Now window.performance.getEntries(); works fine in Firefox, but the problem remains for Safari.

Is it possible to put Google Chrome into a "extension free" mode?

Is there a way to temporary deactivate all (or selected) Google Chrome extensions? This would be handy when I debug pages, since some extensions (eg. AdBlock, Clickable Links etc) modify the content of web pages.
Also sometimes I want to monitor how a page loads via the Chrome developer tool's timeline. But since extension-activity also is recorded it can get a bit messy.
Thank you!
https://support.google.com/chrome/bin/answer.py?hl=en&answer=95464
Sorry guys. I should have done some better research before posting here. I searched in chrome web store and found this extension, which seems to do the thing. Sorry for bothering you.
This solution was discarded since a better suggestion was given (see accepted answer).

How to Enable ActiveX in Chrome?

I read that early builds of Chrome supported ActiveX, but was later restricted to certain MIME types (for support for say Windows Media Player). I then read Google was going to enable ActiveX strictly for the Korean market. How do I (re)enable this in Chrome?
Our web based product relies on ActiveX controls from 3rd parties to play custom video. This limits us to IE. We'd love to support Chrome also, but find it impossible w/o ActiveX support.
There is a proprietary plugin called "Neptune" which says that it will allow you to use IE Tab functionality in Chrome on Windows.
Meadroid do this because they have ActiveX controls which they have written and they want them to be able to work in any browser, and they explicitly mention Chrome in the list of supported browsers for enabling ActiveX with this.
There is also a modified version of Chrome, called ChromePlus, which includes IETab, among other extra features.
I've not used either of these personally, but they look like they'll do what you want. I'd be interested to hear if they work out for you, as I know of other people who want to be able to use IEtab in Chrome :)
anyone who says activex is less secure then NPAPI is crazy. They both allow the exact same access. Yes I've written both. The only reason people think activeX is insecure is because 10+ years ago IE had default settings that allowed a remote site to auto download the plugin.
maybe this new Chrome extension helps:
ActiveX for Chrome
https://chrome.google.com/extensions/detail/lgllffgicojgllpmdbemgglaponefajn/
This could be pretty ugly, but doesn't Chrome use the NPAPI for plugins like Safari? In that case, you could write a wrapper plugin with the NPAPI that made the appropriate ActiveX creation and calls to run the plugin. If you do a lot of scripting against those plugins, you might have to be a bit of work to proxy those calls through to the wrapped ActiveX control.
I'm not an expert but it sounds to me that this is something you could only do if you built the browser yourself - ie, not something done in a web page. I'm not sure that the sources for Chrome are publicly available (I think they are though), but the sources are what you'd probably need to change for this.
http://wiki.answers.com/Q/Does_Google_Chrome_support_ActiveX
Google Chrome comes with an ActiveX
shim, as part of its default plugin
array. So Google Chrome features at
least partial support for ActiveX
controls (as do many non-Internet
Explorer browsers). I can't find
information as to whether or not this
includes support for ActiveX security
certificates or the like, nor if/where
such plugins can be controlled, within
the browser.
..... Note that to enable the plug-in
you must run Chrome with the following
switch " --allow-all-activex" So in
shortcut that is used to start up
Chrome, add this after "Chrome.exe"
I downloaded this "IE Tab Multi" from Chrome. It works good! http://iblogbox.com/chrome/ietab/alert.php

Pasting an image from clipboard to a website

I need to come up with a solution for users to be able to paste an image on to a website, then upload that image on to the web server. I'm not sure what the right solution for this - I am pretty sure javascript is out of the question because I don't think it can handle binary clipboard data (or any clipboard data?)
So, I'm not sure which way to go with this. Is this something possible with a Java applet? Or maybe a Flash SWF? Any other alternatives?
Or this free one (via another StackOverflow question)
You can use pure JavaScript for this, assuming either Chrome or Chrome Frame. Since most other plugins or applets require a specific install action you might as well require installing Chrome Frame as that will fix quite a bit more than just pasting events.
View a live demo of a jQuery plugin that cleanly wraps the HTML Clipboard API. This demo requires the Chrome browser.
Rad Upload (java applet). It's not free, but it is relatively cheap.

Resources