Web Development Tips and Tricks

In this blog, I will be posting tips and tricks which will be useful for web development.

Friday, February 18, 2005

Dynamic Image Display using javascript

I had this requirement. I was displaying images for moderation in a datagrid and was displaying this in a different resolution. If the user wants to view the image without opening a popup or going to server side I used javascript to do this.

DataGrid has an event OnItemDataBound. After a row is added in this event I attach an attribute "onclick" and the javascript function that is to be displayed.

I have a image control and onclick in the image control I display the full sized image. So moderator knows the size of the image and how it will look etc.. and then decide to accept or reject it.

Swarna

0 Comments:

Post a Comment

<< Home