Execute java function from javascript onchange?
Hi,
How I can to call a function implemented in my page1.java from onchange metod of a textfield?
The idea is to implement a similar situation how in a Java Desktop App we can implement in a textfield the event onKeypressed,keyTiped,etc.
Thank's
[271 byte] By [
Jandera] at [2007-11-27 11:24:20]

# 2
I have implemented in my web app one solution for me, but....
I think that is not your solution, my idea function but is not a elegant way to do this.
I've created in one web page a textfield not visible, when I push a button that do something in my java code, if I want to do something in my javascript I check the value of my Javascript:
var staticText=document.getElementById('form1:ocult');
var value=staticText.value;
if (value == "insert in db ok"){
alert ('Congratulations insert ok!!');
window.close();
}
BUT I THINK THIS IS A POOR SOLUTION.
regards