Solved

ImageButton Not Firing In Chrome

Posted on 2013-01-11
5
577 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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