Any Event for submit in GFrame

2 views
Skip to first unread message

mahi

unread,
Jul 31, 2008, 2:55:31 AM7/31/08
to Gwt Window Manager
Hi All,
I have one window created by GFrame as follows...

GFrame newWindow = new DefaultGFrame("");
newWindow.setUrl("C:\test.html");

this "C:\test.html" have one submit button... My problem is I want to
capture the submit event. Is it possible to do that as I am creating
that window using URL, so im not having any control over that button
from GWT side.

Any help or suggestions are greatly appreciated...

- Mahi

Luciano Broussal

unread,
Jul 31, 2008, 3:43:42 AM7/31/08
to gwt-windo...@googlegroups.com
Hi Mahi,

Catch the submit action into your test.hml with Javascript and call a GWT callback via JSNI.
Look at the GWT Forum too.

HTH

Luciano
Fax: 04 92 72 65 91

mahi

unread,
Aug 1, 2008, 4:18:49 AM8/1/08
to Gwt Window Manager
Thank you very much for your quick reply Luciano...

I ve started writing methods in javascript and my gwt code. I am new
to this gwt and also JSNI... Please could you share me some small code
snippet that we write in javascript also gwt. im bit confused exactly
the method uses native keyword whether it lies in javascript or gwt
java code.

- Mahi

mahi

unread,
Aug 1, 2008, 6:27:51 AM8/1/08
to Gwt Window Manager
One more thing Luciano... Actually I want to access the GWT java
variables in the method that we are going to write. Just want to know
is it possible to do that... if yes just please help me in writing the
same please...

- Mahi
Reply all
Reply to author
Forward
0 new messages