?
Solved

ImageButton Not Firing In Chrome

Posted on 2013-01-11
5
Medium Priority
?
587 Views
Last Modified: 2013-01-12
ImageButtons (VS2010) work fine in IE but do not call code-behind when using Chrome.
0
Comment
Question by:cehrnow
[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
  • 3
5 Comments
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 38769212
Check:
http://stackoverflow.com/questions/6703822/image-button-click-event-not-firing-in-chrome
You may need to do the css rules suggested in the link.

Note: If it does not work please post your image button markup and the rendered HTML from Chrome.
0
 

Author Comment

by:cehrnow
ID: 38769623
onMouseOver and onMouseOut work okay but onClick does not fire.

<img src="List.gif" id="cmdMenu" style="left:22;width:56;height:26px;position:absolute;top:15px;Visibility:visible;cursor:hand;" width="96" border="0" alt="List" onClick="cmdSelect()" onMouseOver="cmdMouseOver()" onMouseOut="cmdMouseOut()" />
0
 

Author Comment

by:cehrnow
ID: 38769629
<img id="cmdMenu" style="left: 22px; cursor: hand; position: absolute;
top: 15px" height="26" alt="List" src="List.gif" width="56" runat="server" />
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 2000 total points
ID: 38769954
It must have something to do with what you are doing in the mouseover and mouseout events because the click event fires in Chrome in this test.
<img src="List.gif" id="cmdMenu" style="left:22px;width:56px;height:26px;position:absolute;top:15px;visibility:visible;cursor:hand;" border="0" alt="List" onClick="cmdSelect()" onMouseOver="cmdMouseOver(this)" onMouseOut="cmdMouseOut(this)" />
<script type="text/javascript">
function cmdSelect() {
	alert("cmdSelect()");
}
function cmdMouseOver(ele) {
	ele.src = "List_over.gif";
}
function cmdMouseOut(ele) {
	ele.src = "List.gif";
}
</script>

Open in new window

0
 

Author Closing Comment

by:cehrnow
ID: 38769956
You were right...in the event being called itself.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

800 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