Solved

ImageButton Not Firing In Chrome

Posted on 2013-01-11
5
565 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
  • 3
5 Comments
 
LVL 35

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 500 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now