Re: Using JSNI for login RPC call
I have tried doing like this. I have two websites. One javascript based and one GWT based. I would like to login to the GWT based application from the Javascript application. I thought i could use JSNI to export the login method from the GWT application and call it from the other javascript application. Both the websites are on https, so i am assuming there wont be any security issues. I have exported the login method of the GWT application as follows, public static native void exportLogin() /*-{ $wnd.login=@com.sequenom.assaydesigner.login.client.LoginModule1::loadModule(); }-*/; How do i invoke this from the javascript application and bring up the GWT application. From the documentation i understand that the GWT module has to be loaded to get access to the exported method. So i dont know how exactly implement this. *is it even possible to do it this? * -- 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.
Re: Using JSNI for login RPC call
I have tried doing like this. I have two websites. One javascript based and one GWT based. I would like to login to the GWT based application from the Javascript application. I thought i could use JSNI to export the login method from the GWT application and call it from the other javascript application. Both the websites are on https, so i am assuming there wont be any security issues. I have exported the login method of the GWT application as follows, public static native void exportLogin() /*-{ $wnd.login=@com.sample.login.client.LoginModule1::loadModule(); }-*/; How do i invoke this from the javascript application and bring up the GWT application. From the documentation i understand that the GWT module has to be loaded to get access to the exported method. So i dont know how exactly implement this. *is it even possible to do it this way? * -- 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.
Using JSNI for login RPC call
Is it a good idea to use JSNI to call a LoginRPCImpl to login to a GWT applcation from a HTML page. http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface -- 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.