I’m trying to pass to a javascript function some values from my Java Applet
JSObject.getWindow(ui).eval("foo(123)");
ui: My FormMain.
What happens that the my javascript function called “foo”, don’t run ? My “foo” functions has just an alert.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Where is your function placed? Maybe it belongs to another execution context. When you call ‘eval’, it is executed in the global context. So, please provide the exact place where your javascript function is.