dcsimg
Applet Communication from javascript..
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   MD_PRASAD
Posted On:   Thursday, January 17, 2008 09:25 AM

I have one Apllet, in that I have one method public void addToDatabase(String username, String pwd) { //code to save the database. } I am able to call the Applet method from a javascript file i.e., document.appletName.addToDatabase("uid","pwd"); it is working fine. Now in the above method i replaced String with String array such as public void addToDatabase(String[] username, String[] pwd) { //code to save the database. } I am calling the applet from javascript var uid=new Array();    More>>

I have one Apllet, in that I have one method


public void addToDatabase(String username, String pwd)
{
//code to save the database.

}



I am able to call the Applet method from a javascript file i.e.,
document.appletName.addToDatabase("uid","pwd");


it is working fine.


Now in the above method i replaced String with String array such as



public void addToDatabase(String[] username, String[] pwd)
{
//code to save the database.
}



I am calling the applet from javascript



var uid=new Array();


var pwd=new Array();


document.appletName.addToDatabase(uid,pwd);



i am experiencing one error that is not such method exists



is it possible to pass array of object?




if not what could be the best way of doing this?


   <<Less

Re: Applet Communication from javascript..

Posted By:   Stephen_McConnell  
Posted On:   Saturday, January 19, 2008 07:55 PM

About | Sitemap | Contact