Hi

JSNI functions must be public don't they

Hermod 

-----Opprinnelig melding-----
Fra: google-web-toolkit@googlegroups.com
[mailto:google-web-tool...@googlegroups.com] På vegne av balachandra maddina
Sendt: 9. oktober 2009 19:16
Til: google-web-toolkit@googlegroups.com
Emne: How to call a parent window function from a Frame

Hi There,

 I have a situation where i have defined a JSNI function in parent window
like below 



          public static native void exportCommunicator() /*-{
              $wnd.registerWidget =
              @com.satmetrix.main.client.Communicator::doRegistor();
           }-*/;
        


and i have an iframe here in the main window and im trying to call the above
function using a JSNI based call like below



         private native void doRegisterWidget()/*-{
             $wnd.parent.registerWidget();
           }-*/; 
        


But the above code is not working as the parent window function is not
getting called. even if i call "$wnd.alert("null")" no alert is getting
fired. im very puzzled here over what had happened? could any one help me
out on this pls

Your help is appreciated

Thank you,
bala. 






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to