It's not valid javascript. Javascript doesn't allow you to do that, thus GWT cannot allow you to either. Try $wnd.opener.document.EditView ["participant_id_"+index].value. If that doesn't work, you will at least need to give that element an id property and then you can use getElementById.
In another note, I presume opener is some kinda special document, right? Otherwise you should be using $doc instead. Blake On Jan 31, 5:03 am, Alex Luya <[email protected]> wrote: > I hava JSNI method(blow) to control an element(a input) of parent > window, > --------------------------------------------------------------------------------------------------------------------- > private static native void setUser(String index,String id,String name)/ > *-{ > ........................... > $wnd.opener.document.EditView+".participant_id_"+index.value = > id; > ................................}-*/; > > --------------------------------------------------------------------------------------------------------------------- > > here,this id of element in parent window is a combination > participant_id and id(input variable),I tried different ways to > construct this statement,but got errors,Can anybody tell me how to > contruct this statement? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
