Re: Is it possible to use the new Clipboard API in a GWT app? It depends on document.hasFocus being true.

2023-01-03 Thread Pramod Patil
>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>

Re: Is it possible to use the new Clipboard API in a GWT app? It depends on document.hasFocus being true.

2023-01-03 Thread Pramod Patil
;>>>>>>>> >>>>>>>>>> RootPanel.*get*("readTextButton").add(readTextButton); >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>

Re: Is it possible to use the new Clipboard API in a GWT app? It depends on document.hasFocus being true.

2023-01-03 Thread Pramod Patil
{ >>>>>>>> >>>>>>>> writeText(writeText.getText()); >>>>>>>> >>>>>>>> } >>>>>>>> >>>>>>>> }); >>>>>>>> &

Re: Is it possible to use the new Clipboard API in a GWT app? It depends on document.hasFocus being true.

2022-12-29 Thread Pramod Patil
>>>>>> >>>>>> var resolve = function(text) { >>>>>> >>>>>> console.log(text); >>>>>> >>>>>> }; >>>>>> >>>>>>

Re: Is it possible to use the new Clipboard API in a GWT app? It depends on document.hasFocus being true.

2022-12-25 Thread Pramod Patil
Hi Experts, I am newbie with javascript and GWT, I want my function to return clipboard data,for further use in application upon click of(tool button). Is there any way to get the text read from clipboard, I am looking something similar @Jim Douglas mentioned, with

Re: Modern browsers support for Copyclipboard functionality

2022-12-23 Thread Pramod Patil
ata("text/plain") > event.preventDefault(); > if (data == null) > return; > > // now you need somehow to propagate data to the > interesting parties (methods, classes etc) > // I am usin

Re: Modern browsers support for Copyclipboard functionality

2022-11-01 Thread Pramod Patil
...@gmail.com wrote: > >> Well it's the event "copy" as in my example. You need an eventHandler and >> then the event is passed as argument to your handler. >> >> Hope that helps. >> >> On Thu, Oct 20, 2022 at 7:47 PM Pramod Patil >> wrote: &

Re: Modern browsers support for Copyclipboard functionality

2022-10-20 Thread Pramod Patil
ipboardData.setData){ return $wnd.clipboardData.setData('Text',Data); } } }- On Thu, Oct 20, 2022 at 5:17 PM Vassilis Virvilis wrote: > I believe I did > > It's this snippet for copy > > event.clipboardData.setData("text/plain", data); > > On Thu, Oct 20, 2022 at 1:52 P

Re: Modern browsers support for Copyclipboard functionality

2022-10-20 Thread Pramod Patil
not know why your code does not compile. I think native methods are > not checked so they tend to give NULL errors during runtime. If that is > your case then caniuse is your friend. > > Vassilis > > > > On Thu, Oct 20, 2022 at 11:12 AM Pramod Patil > wrot

Re: Can anyone help me to copy the text to clipboard in a simple way and which works on all browsers

2022-10-20 Thread Pramod Patil
Hi, Did you get solution for your problem? On Monday, 21 March 2016 at 19:16:23 UTC+5:30 Dhinakar wrote: > Can anyone help me to copy the text to clipboard in a simple way and which > works on all browsers especially on Safari, Chrome and IE and with out the > need of flash or any other apps.

Re: Modern browsers support for Copyclipboard functionality

2022-10-20 Thread Pramod Patil
g parties (methods, classes etc) > // I am using the EventBus from GWT > getEventBus().fireEvent(new PasteEvent(data)); > } > }; > > Hope that helps > > Vassilis > > On Thu, Oct 20, 2022 at 9:18 AM P

Modern browsers support for Copyclipboard functionality

2022-10-20 Thread Pramod Patil
Hi All, In our GWT application we are using Java native method call for Copytoclipboard functionality. Please refer below code public static native String getClipboardData()/*-{ if($wnd.clipboardData && clipboardData.setData){ return $wnd.clipboardData.getData('Text'); } } }-*/ public static

Copyclipboard support with modern browsers

2022-10-20 Thread Pramod Patil
pecific question, but if anyone might have came across this situation, can help here. Even javascript experts please comment. Thanks and regards, Pramod Patil -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and

Re: GWT Migration from 2.1.0 to 2.9.0

2022-09-27 Thread Pramod Patil
Thank you for your response, I added the scripts in our html file in its head tag, so Ext. BLANK_IMAGE_UR related error got solved but could see new error as com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read properties of undefined. (reading 'BACKSPACE'), i tried to

Re: GWT Migration from 2.1.0 to 2.9.0

2022-09-26 Thread Pramod Patil
One more thing I noticed is, we have script tags in app.gwt.xml like below

Re: GWT Migration from 2.1.0 to 2.9.0

2022-09-26 Thread Pramod Patil
msgid/google-web-toolkit/058d57eb-a47b-43b2-8688-12ed3e86430en%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit/058d57eb-a47b-43b2-8688-12ed3e86430en%40googlegroups.com?utm_medium=email_source=footer> > . > -- Thanks and regards, Pramod Patil Contact +91

GWT Migration from 2.1.0 to 2.9.0

2022-09-26 Thread Pramod Patil
Hi I having beginners level knowledge with GWT, having task to migrate our application from GWT 2.1.0 to 2.9.0, in process, have made required changes. Application getting compiled fine but on browser its giving below error SEVERE: (TypeError) : Cannot set properties of undefined (setting