>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>&
gt;>>
>>>>>>>>>> RootPanel.*get*("readTextField").add(readText);
>>>>>>>>>>
>>>>>>>>>> RootPanel.*get*("readTextButton").add(readTextButton);
>>>>&
*public* *void* onClick(ClickEvent event)
>>>>>>>>
>>>>>>>> {
>>>>>>>>
>>>>>>>> writeText(writeText.getText());
>>>>>>>>
>>>>>>>>
ocus());
>>>>>>
>>>>>> var promise = navigator.clipboard.readText();
>>>>>>
>>>>>> var resolve = function(text) {
>>>>>>
>>>>>> console.log(text);
>
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
$wnd.navigator.clipboard.readT
.getData("text/plain")
> event.preventDefault();
> if (data == null)
> return;
>
> // now you need somehow to propagate data to the
> interesting parties (methods, classes etc)
> // I am usi
2022 at 8:10:57 pm UTC+11 vas...@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
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,
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
> wrote:
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. T
interesting 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
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 nat
tand this is not GWT specific 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 unsub
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 figure
One more thing I noticed is, we have script tags in app.gwt.xml like below
ps://groups.google.com/d/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&utm_source=footer>
> .
>
--
Thanks and regards,
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
'B
17 matches
Mail list logo