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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -