Hai All,

This is regarding passing xml data from outside javascript file into
GWT entry point class.

My requirement like this, i need to get the some xml data from other
javascript file into GWT entry point class.

I written native function ,it will generate javascript function ,so
that i can access this function from outside the gwt application.

here my code:

public class Home implements EntryPoint {
        public static String xmldata = "";
        private Button clickMeButton;
        public void onModuleLoad() {
                popupwin();


        }
 public static void GetHelpPopupPanel(String s) {
        xmldata = s;
   //here some code
}
public static native void popupwin() /*-{

           $wnd.winpopup = function(s){
           @com.mantra.mydraw2d.client.Home::GetHelpPopupPanel(Ljava/lang/
String;)(s);
           }
        }-*/;

}
now i can access winpopup from outside GWT application.

it is working fine when i pass simple string value.but when i pass xml
data with attributes as a string ,it is not passing correct data.it is
missing node names and some other attributes.

please help me to complete my requirement.

Thank you


--~--~---------~--~----~------------~-------~--~----~
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