Why not use GWT's Timer class to implement this instead?

I think your problem is the JSNI code won't do a replacement inside of a
double quoted string.

On Dec 6, 2008 10:31 PM, "prat" <[EMAIL PROTECTED]> wrote:


 public static native void repeatTime() /*-{
 t=setTimeout("@com.google.gwt.client.myreminders::testtry()()",500);
 }-*/;

 public static void testtry(){
         int i = Random.nextInt();
         login_name.setText(""+i);
 }

login_name is TextBox where i want to dispaly random numbers at every
0.5 sec.
But the above code isnt working.. Can any one find out the mistake.
Thanks alot


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to