javafx 2 - passing custom java objects to webEngine executeScript -


i have person class

person p = new person(); ....... ..... 

following not working

webengine.executescript("add(" + p +  ")"); 

and in html

function add(obj) {    document.getelementbyid("helloprompt").innerhtml= obj.name; // error } 

ok got first had jsobject , call function

jsobject jsobj = (jsobject)webengine.executescript("window"); jsobj.call("add", p); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -