It's not a secret anymore!*
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
Author

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.

Thanks,
Himalay


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

Joined: Feb 07, 2007
Posts: 185
Hi,

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


Thanks,
Srikkanth
 
Consider Paul's rocket mass heater.
 
subject: Javascript event