Can a Java applet open a “select directory” and write to a filesystem via JavaScript interaction?

后端 未结 3 766
闹比i
闹比i 2021-01-24 02:28

I am looking for a way to save a couple of files created with JavaScript on the clients computer. I want him to be able to choose a folder (similar to open/save folder dialog),

3条回答
  •  臣服心动
    2021-01-24 03:16

    It sure is possible.

    One way is to use a signed applet, but if your users are willing to upgrade to Java 1.6.0_10+, a signed applet is not needed. Since 1.6.0_10 (the Next Generation Java Plug-In), JNLP API services are available to embedded applets. Here is a demo. of the JNLP file services.

    I see the other reply has already covered the applet/JS interaction.

提交回复
热议问题