Geeks With Blogs
Łukasz Kuryło's blog jQuery
Problem with __doPostBack and second __EVENTTARGET
I had recently a very interesting problem. I have a single button on my page, which opens a jquery ui dialog with other page containing single textbox control. After pressing the Ok button, using web service the textbox value is sending to the server and a label control on the main page is updating and the update panel containing this label is refreshing. Vary simple solution. Maybe too simple, because I have lost a few hours to investigate, why after pressing the Ok button, full postback occurs ......

Posted On Wednesday, June 1, 2011 3:30 AM

[jQuery] Determine which mouse button was pressed
This is very easy to check, which mouse button was pressed using jQuery. This solution works propertly on IE (tested on 9), Firefox (tested on 4), Chrome. In Opera there doesn't work the middle button and the browser context menu is showing. $('#someElement').mousedown... { switch (e.which) { case 1: alert('Left mouse button pressed'); break; case 2: alert('Middle mouse button pressed'); break; case 3: alert('Right mouse button pressed'); break; default: alert('Unsupported mouse button'); ......

Posted On Thursday, May 26, 2011 7:15 PM

Copyright © Łukasz Kuryło | Powered by: