Jsapi - getting applet id

All others add-ons (Secure FTP, SCP, Flickr, scripts ...).
Post Reply
cactuscomputing
Posts: 10
Joined: Wed Feb 11, 2009 6:59 pm

Jsapi - getting applet id

Post 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
}

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Jsapi - getting applet id

Post by support »

You plan to have several applet instances on the same page ?

cactuscomputing
Posts: 10
Joined: Wed Feb 11, 2009 6:59 pm

Re: Jsapi - getting applet id

Post by cactuscomputing »

Not in the near future, but it is very likely longer term.

Post Reply