Another free Plugin. This time a bit of “clipboarding”, as much as is possible with all browsers having their own limitations and security concerns (for good and valid reasons):
Again, a big thanks to you!
There will be soon no longer reason to use the MBS plugins
My pleasure. MBS doesn’t have Web 2 Plugins, do they? Plus, all paid Xojo Plugins I’m aware of are coming with great support. From me, you can only expect one thing: nothing .
Seriously, with the exception of the teccCSS Plugin, all these plugins are things I need for my own projects, so why not share them?
No, you’re right. I told it anyway in case it begins one time.
Yes, my joke was not realistic
Personally, it’s not I don’t want to share things, but my classes are mostly “cumbersome” and not easily shareable. At least, I share code when I can
Now you know why mine are encrypted
As long as it works, it is (almost) fine, isn’t it?
Believe me, I have seen many “strange” code in business applications, including big brands. There are always different ways to achieve things. The only bad thing is having no exception handling at all etc. and security holes.
It seems that copying my text to the clipboard is a two step process ie click the button to add the text to the teccClipboard, then click the teccClipboard to add the text to the clipboard.
Is there any way to make this a one step process eg
teccClipboard3.value = tf7.Text teccClipboard3.CopyToClipboard
Not at my knowledge if it should work on all browsers. Apple restriction for Safari in their Clipboard API.
BTW, this is exactly the reason why Xojo did not implement the Clipboard functionality … as all browsers behave a bit differently (it is actually kind of a mess), they concluded it is better not to implement it at all, what my plugin does: implementing it a bit Xojo => clipboard via click event.
For the teccClipboard Event to fire, you are required to click on the teccClipboard icon, and it is here that teccClipboard must do it’s invisible magic. So… is there any way you can add an option to Call that magic into being via code external to the teccClipboard? This way we could even hide the teccClipboard.
A few users were referring in this forum to https://clipboardjs.com/ and the magic it can’t do. That’s true on all codepen, fiddle examples etc, but won’t work in Safari if you don’t use an active click from user interaction. In other words: Safari will block any of such requests.
You can read more in this here for instance: New Safari clipboard API includes additional browser security, privacy mechanisms | The Daily Swig