Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Show images on OnMouseOver event in Javascript

Posted on 2009-04-07
1
Medium Priority
?
973 Views
Last Modified: 2012-05-06
In my project I have a Grid view.
and it has some 20 to 30 rows of employees which are hyperlinks.
When the user moves mouse on the hyperlink I need to show his thumbnail  image.
Remember its only on  Onmouse over event not clicking the hyperlink.
How can I do this, Do I have to use simple Javascript or is there any control
available in AJAX for this image popup.
Any help will be highly apprecited..
My project is being developed in .Net3.5, C# and VS2008.

Thanks in Advance
0
Comment
Question by:ken_rgr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
alexandremattar earned 2000 total points
ID: 24108752
In this example set up the following things:
1 - An object of employee
2 - A GridView
3 - Plugin Jquery

In the code just created a generic list, and attaches to the DataSource of the GridView.

The key to this work is to add a column of type LinkItem, this column and click the option Convert this field into a TemplateField.
Then, we have to edit the html of this page to accept the parameters of jquery.

I leave all the files for download below.
OnmouseOverPreviewDataGrid.doc
jquery-1.3.2.txt
main.txt
1.jpg
2.jpg
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question