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]
# 1

Hi Jander,

I would like to know too how to call a java function from javascript code..

Anybody can help us?

Is that posible?

It's important

Thanks

Reliona at 2007-7-29 15:57:41 > top of Java-index,Development Tools,Java Tools...
# 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

NewLitusa at 2007-7-29 15:57:41 > top of Java-index,Development Tools,Java Tools...