Page 1 of 1

Jsapi - getting applet id

Posted: Tue Feb 17, 2009 10:04 pm
by cactuscomputing
It would be handy to get the applet id when the Jsapi Javascript methods are called. This feature can be easily added to Jsapi without breaking the existing code. JSMApplet needs to be altered so that the extra parameter is appended to the argument list being passed to notifyJS. The existing Javascript will still work, for example:

Code: Select all

function JSTransferCompleted(filename) {
   // do something useful
}
Or the method signature could be altered to pick up the new value:

Code: Select all

function JSTransferCompleted(filename, name ) {
  // do something useful
}

Re: Jsapi - getting applet id

Posted: Wed Feb 18, 2009 7:25 am
by support
You plan to have several applet instances on the same page ?

Re: Jsapi - getting applet id

Posted: Wed Feb 18, 2009 2:14 pm
by cactuscomputing
Not in the near future, but it is very likely longer term.