• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java -Javascript communication using JSObject

 
kiran giriya
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I m using this
String custno="1234";
String args[] = {custno};
JSObject.getWindow(this).call("openCusNoListWindow",args); in an applet.
Now how do i get this custno in an javascript.I hava many arguments.
if i use this
function openCusNoListWindow(args)
{
alert("args "+args[0]);
} It says [0] undefined.Please help me how to get the arguments passed in call in an javascript function.Thanks in advance.Still any doubt please reply.
regards
kiran
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!