event-handling

Prevent Postback in array of linkbutton is created at dynamically

i have created Array of Linkbutton and when user click on link button it will create an array of Radio Buttons but it requires Postback all time so page load takes more time... what is solution of it?? ...

Inline-editing: onBlur prevents onClick from being triggered (jQuery)

Hello StackOverflow community! I'm currently working on my own jQuery plugin for inline-editing as those that already exist don't fit my needs. Anyway, I'd like to give the user the following (boolean) options concerning the way editing is supposed to work: submit_button reset_on_blur Let's say the user would like to have a submit ...

Subscribing to Event Handlers

I'm curious about the pros and cons when subscribing to event handlers. <asp:DropDownList id="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" /> vs protected void Page_Init(object sender, EventArgs e) { this.DropDownList1.SelectedIndexChanged += new EventHandler(DropDownList1_SelectedIn...

Silverlight MouseLeftButtonDown event not firing

For the life of me, I can not get this to work. I can get MouseEnter, MouseLeave, and Click events to fire, but not MouseLeftButtonDown or MouseLeftButtonUp. Here's my XAML <UserControl x:Class="Dive.Map.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/...

Google Maps API - Event Listeners

Is it necessary to remove Event listeners in when using google maps javascript api? "assume that code is working fine" In other words do even listeners hinder website performance in such a way that one should ALWAYS remove/minimized unused listeners. Thanks ...

Command line tool (PDF Workflow) in OSX that detects if key is down

Hello! I'm writing a OSX PDF Workflow in ObjC and C. A single executable ("UNIX Tool" as named in the Apple reference), that reads in the spooled PDF file, does some parsing. I'd like to give more functionality by enabling a key-down event handling, meaning - when user opens print dialog in an application - and chooses to left-mouse-cl...

Problem with room/screen/menu controller in python game: old rooms are not removed from memory

I'm literally banging my head against a wall here (as in, yes, physically, at my current location, I am damaging my cranium). Basically, I've got a Python/Pygame game with some typical game "rooms", or "screens." EG title screen, high scores screen, and the actual game room. Something bad is happening when I switch between rooms: the old...

Adding click/double-click events to static group box controls

Having realised my own reasons were way too dubious, I've now gone about this a different way. But I'm still curious... For reasons of nostalgia, familiarity and laziness, I'm coding a UI with MFC. For dubious reasons (as if those were not enough), I wanted to add a (double-)click event to a group box. Naturally, the group box contains ...

how to attach headerclick event for Ext.grid.GridPanel in extjs?

Can you tell me how to attach headerclick or headerdblclick event to Ext.grid.GridPanel? ...

wxPython: Sending a signal to several widgets

I am not even sure how to ask this question. I want something that is like the wxPython event system, but a bit different. I'll try to explain. When there is a certain change in my program (a "tree change", never mind what that is,) I want to send a signal to all the widgets in my program, notifying them that a "tree change" has occurre...

How to pass event to method?

I would like to create a method that takes as a argument an event an adds eventHandler to it to handle it properly. Like this: I have 2 events: public event EventHandler Click; public event EventHandler Click2; Now i would like to pass particular event to my method like this (pseudocode): public AttachToHandleEvent(EventHandler MyEv...

How do I store keys pressed

I would like to store keys pressed when I listen out for the keyDown on the stage. I can add the listener fine, but I'm not getting the character I want out of the event to store it into a string. This is what I have so far: private var _addToString:String = ""; public function Hotwire() { this.addEventListener(Keyb...

How to get the Blur event to fire for the document on the iPhone?

Does anyone know how to get the blur event to fire on the document for the iPhone? I'm trying to get it to fire either when a user changes windows in Safari, or when they open their bookmarks or when they decide to add the page to their homescreen. But none of these are firing it. Here's my code: $(document).blur( function () { ...

Way for Excel VBA to use shadowed chart event handler

I have a embedded chart and I want to modify the behavior on the mouseDown event but only when it occurs on a dataSeries (xlSeries). But for all other elements (axis, plot area, gridline, etc), I want it to fall back on the default mouseDown behavior. Is this possible? Thanks. ...

How can I monitor mouse events with Python Xlib instead of capture them?

I need to monitor and filter mouse events with Xlib in Python. So far I have found out that this code receives events, but does not pass them on, so I can't actually do anything with the mouse anymore. from Xlib.display import Display from Xlib import X display = Display(':0') root = display.screen().root root.grab_pointer(True, X.Bu...

GWT UiHandler on HTMLPanel

I'm writing a widget with the following markup: <g:HTMLPanel ui:field="shortcutPanel" styleName="{style.shortcut}"> <g:Image ui:field="shortcutImage"></g:Image> <span ui:field="shortcutLabel"></span> </g:HTMLPanel> So essentially a div that wraps and image and a label. Now, instead of adding the event handlers on the image/sp...

.delegate equivalent of an existing .hover method in jQuery 1.4.2

I have an event handler bound to the hover event using the .hover method, which is below: $(".nav li").hover(function () { $(this).addClass("hover"); }, function () { $(this).removeClass("hover"); }); It is important to note, that I require both functions within the handler to ensure synchronisation. Is it possible to rewrite ...

Custom event loop and UIKit controls. What extra magic Apple's event loop does?

Does anyone know or have good links that explain what iPhone's event loop does under the hood? We are using a custom event loop in our OpenGL-based iPhone game framework. It calls our game rendering system, calls presentRenderbuffer and pumps events using CFRunLoopRunInMode. See the code below for details. It works well when we are no...

Close event in Safari iphone ?

Hello, Is there a way to know that the user is closing the navigator, and/or the tab in Safari for iPhone, so that I can save data to localStorage, or do I need to do it for every input ? ...

How can I get Firefox to update background-color on a:hover *before* a javascript routine is run?

I'm having a Firefox-specific issue with a script I wrote to create 3d layouts. The correct behavior is that the script pulls the background-color from an element and then uses that color to draw on the canvas. When a user mouses over a link and the background-color changes to the :hover rule, the color being drawn changes on the canva...