File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript event" Watch "Javascript event" New topic

Javascript event

Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
In a jsp page, I have group of text boxes and image with blank spaces. My task is to populate the image with the alphabet/digit entered in the text box.
Any suggestions/example how should I proceed with this.


SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 237

Oh if the image needs to be created , you have to go the server (make an AJAX call passing the text entered by the user), create the image (Take a look at Graphichs2D API) and in the AJAX callback function change the image src attribute with URL where you have placed the image file

I agree. Here's the link:
subject: Javascript event
It's not a secret anymore!