![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 9 of 9 total |
![]() |
Thu, Jan 24 2013 12:00 PM | Permanent Link |
Uli Becker | Hi,
I need to copy some information to the clipboard and enable the user to paste it to a site which is loaded by my application (using a TPage control). Is that possible with EWB? Thanks Uli |
Thu, Jan 24 2013 12:26 PM | Permanent Link |
Matthew Jones | That made me wonder if it was possible at all. It seems it sort of is.
http://stackoverflow.com/questions/400212/how-to-copy-to-the-clipboard-in-javascript As for whether you can run arbitrary javascript in EWB, I don't know. It would be useful I guess, but it would also be dangerous. If available, it would be a powerful tool. /Matthew Jones/ |
Thu, Jan 24 2013 1:45 PM | Permanent Link |
Uli Becker | Matthew,
> That made me wonder if it was possible at all. It seems it sort of is. > > http://stackoverflow.com/questions/400212/how-to-copy-to-the-clipboard-in-javascript Thanks. I've seen some websites (don't remember them unfortunately) where you can press a button and copy code to the clipboard. That works also with browsers <> IE. Uli |
Thu, Jan 24 2013 2:04 PM | Permanent Link |
Raul ![]() | Uli,
> I've seen some websites (don't remember them unfortunately) where you > can press a button and copy code to the clipboard. That works also with > browsers <> IE. Those usually rely on Flash (i.e. http://code.google.com/p/zeroclipboard/) - so you'd need flash installed (and it would not work on many mobile browsers - at least iOS ones). Raul |
Thu, Jan 24 2013 2:10 PM | Permanent Link |
Raul ![]() | Uli,
<< I need to copy some information to the clipboard and enable the user to > paste it to a site which is loaded by my application (using a TPage > control). >> AFAIK sandboxing makes this one one tricky so easiest would be to train user to copy/paste manually. I'm no expert but security implications of clipboard access would make this one unlikely to be implemented by browsers (without lot of scary prompts). Raul |
Fri, Jan 25 2013 2:47 AM | Permanent Link |
Uli Becker | Raul,
> I'm no expert but security implications of clipboard access would make > this one unlikely to be implemented by browsers (without lot of scary > prompts). Thank you. You are right, I'll have to find another way to achieve what I need. Regards Uli |
Fri, Jan 25 2013 4:17 AM | Permanent Link |
Matthew Jones | I quite liked one response to the stackoverflow Q, where the developer pops up a
box with an edit and the text selected and says to press Ctrl-C, Enter. /Matthew Jones/ |
Fri, Jan 25 2013 8:46 AM | Permanent Link |
Uli Becker | Matthew,
> I quite liked one response to the stackoverflow Q, where the developer pops up a > box with an edit and the text selected and says to press Ctrl-C, Enter. Yes, I saw that one. Unfortunately it doesn't help much with a tablet. What I am actually doing is: I have a windows application that stores links together with login data (if available). This application is started by using a hotkey . After having searched the website, this website is launched. A second press of the hotkey returns the handle of the active form field in the browser, so that my application can fill in the necessary data (it can also send ENTER's and TAB's). Now I try to migrate this application into a web application using EWB, so that it can be used by an Android tablet. The main form contains a TPage control where the desired website is displayed. No problems except entering the login data. That doesn't seem to be possible. That's why I asked, if it's at least possible, to copy this login data to the clipboard. Thanks Uli |
Fri, Jan 25 2013 11:08 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Uli,
<< Now I try to migrate this application into a web application using EWB, so that it can be used by an Android tablet. The main form contains a TPage control where the desired website is > displayed. No problems except entering the login data. That doesn't seem > to be possible. >> Yeah, you're going to have issues getting access to the internal document elements for a TPage if the document was not loaded from the same source (same domain/port). It's the same thing with clipboard access: the browser vendors/developers don't want naughty developers automating things like putting data on the clipboard or pasting it, for obvious reasons. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, April 23, 2025 at 06:31 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |