This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Applets and the fly likes Java message on javascript alert Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Java message on javascript alert" Watch "Java message on javascript alert" New topic
Author

Java message on javascript alert

Tanu Gulati
Ranch Hand

Joined: Oct 06, 2008
Posts: 113

I have a java script method say X which calls Java method say Y , method Y in java does some processing and returns a message. I want to show this message as an alert shown through javascript.


I tried searching in Goooooooogle but no answer, can anyone help me out to solve this.



thanks
Tanu Gulati
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
maybe something like this

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java message on javascript alert