PDA

View Full Version : how to embed/call javascript function from java


prathapsp
07-15-2005, 05:48 AM
Hai,
I'm in a jsp-java-javascript environment.

Is it possible to embed/call a javascript function from java. My div element's scrolltop (which is a html element) should be set after I sort my datatable without refreshing the page
As of now, I store this value in a h:textbox and when I refresh the page, I use a javascript function to use this textbox value to set the div's scrolltop property.

Awaiting some suggestions. Thanx in advance.

Mariko
07-15-2005, 12:02 PM
As far as I know, I think the only way to have Java communicate with JS is through Netscape. It won't work on IE/Mozzilla/Maxthon. You might want to hunt through the Netscape site to find out more. Sorry - I don't know a ton =P