java - JavaFx JsObject cookie -


i want use jscript set cookie inside javafx application in browser .

i tried use jsobject purpose did not work , throwing exception:

security_err: dom exception 18

this code used:

public static void writecookies(string data) {     webengine engine = new webengine();     jsobject doc = (jsobject) engine.getdocument();     data = cookiename + "=" + data + "; expires=" + helpers.getgmtexpiredate(120);     doc.setmember("cookie", data); } 

i using jsobject.getwindow(this) , executing jscript code in applet, in javafx, getting jsobject in such way not work. can force work removing jfxrt.jar. (solving conflict between jxfrt.jar , plugin.jar).

unfortunately, option not suit because project highly depends on javafx fxml.
how can call jscript functions javafx?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -