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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -