events

problem with binding events in Jquery chain

Hi , I am currently using jquery chain to bind html controls with JSON output. I have a few elements in my that I have to bind events on. Since these elements come within the scope of the the JQuery's root I observer that none of these bindings were working , then I figured out the builder in the hash that jquery chain takes in as a pa...

How can I tell when something outside my UITableViewCell has been touched?

Similar to this question I have a custom subclass of UITableViewCell that has a UITextField. Its working fine except the keyboard for doesn't go away when the user touches a different table view cell or something outside the table. I'm trying to figure out the best place to find out when something outside the cell is touched, then I co...

Is there a way to set a handler function for when a set of events has happened?

eg I have two concurrent AJAX requests, and I need the result from both to compute a third result. I'm using the Prototype library, so it might look something like this: var r1 = new Ajax.Request(url1, ...); var r2 = new Ajax.Request(url2, ...); function on_both_requests_complete(resp1, resp2) { ... } One way would be to use polli...

click() not behaving like user click

I have searched for a solution to this for the last several hours but to no avail. When I click on a button that has a return false in OnClientClick, no postback occurs to the server. When I use jquery to trigger the click function of the button, OnClientClick fires first, but regardless of the return value, a postback occurs. Here's a s...

asp:repeater events - how to postback

Hello I have an ASP:Repeater Which I would like to display a list of check boxes in. These check boxes are related to a list of user preferences and the users resulting answer. See Code Bellow. I would like to add do one of the following if possible Option 1: It would be great if I could use the Event in the Repeater:OnItemCommand(......

XML comments on delegate declared events

I am visiting some old code, and there are quite a few events declared with delegates manually rather than using EventHandler<T>, like this: /// <summary> /// Delegate for event Added /// </summary> /// <param name="index">Index of the item</param> /// <param name="item">The item itself</param> public delegate void ItemAdded(int index, ...

Onkeyup not firing in Opera when using cyrillic layout.

Hello, I'm struggling to understand why the following problem appears. I have an input box and I want to attach an Autocomplete box to it. function input_set_autocomplete_to(obj) { if( obj.type != "text" ) { return; } if( obj.getAttribute("rel") != "autocomplete" ) { return; } obj.setAttribute("autocomplete", "off"); o...

python gui events out of order

from Tkinter import * from tkMessageBox import * class Gui: def __init__(self, root): self.container = Frame(root) self.container.grid() self.inputText = Text(self.container, width=50, height=8) self.outputText = Text(self.container, width=50, height=8, bg='#E0E0E0', state=DISABLED) self.inputText.grid(row=0, column=0) self...

In .NET, what thread will Events be handled in?

I have attempted to implement a producer/consumer pattern in c#. I have a consumer thread that monitors a shared queue, and a producer thread that places items onto the shared queue. The producer thread is subscribed to receive data...that is, it has an event handler, and just sits around and waits for an OnData event to fire (the data...

creating custom event / signal on cocoa os x

I am not much familiar with developing application using cocoa on mac. Can some one help me with how can i create custom events or signals, and how to make sure thread acts when these are generated or triggered. Any help will be appreciated. ...

how to detect network event in cocoa osx.

Is it possible to make sure my thread reacts on whenever there is network available ? Basically my thread should automatically get event that network is available and perform certain task. Any help will be appreciated. ...

C#: How to Query for an event log details with a given event id?

1) How to know whether a particular event (given event ID, time and node as inputs) is logged or not? [In this case, I know only one event will be logged] 2) If the event is logged, how do I get details like event description, Log-name etc.. for eg, I want to query for an event under the node Applications and Services Logs > Microsoft...

C# events: override or register ?

Let's say you have a custom form MyForm : Form and want to run some custom code for the OnLoad event. Are there any performance reasons to register for the OnLoad event and run your code in the handler method instead of overriding the OnLoad method in which you call the base method and run your custom code ? Are there any pros/cons for...

Need events to execute on timer events, metronome precision.

I setup a timer to call an event in my application. The problme is the event execution is being skewed by other windows operations. Ex. openning and window, loading a webpage. I need the event to excute exactly on time, every time. When i first set up the app, used a sound file, like a metronome to listen to the even firing, in a stead...

jquery listener don't "listen" to events on DOM elements dinamically created

Hi, i have a listener like this: $('.delete').click(function() { ...some stuff }); also, on the same page, another script dinamically add elements to the DOM in this way: $('#list').append('<tr><td><a class="delete" href="#">delete</a></td></tr>'); my problem is that the listener doesn't "listen" to these dinamically created ele...

What is the syntax to declare an event in C#?

In my class I want to declare an event that other classes can subscribe to. What is the correct way to declare the event? This doesn't work: public event CollectMapsReportingComplete; ...

MediaCollectionMediaAdded Event does not fire

I'm relatively new to C# and want basically develop an application that works with the WMP library. According to msdn, the WMPLib offers several events dealing with the WMP library such as MediaAdded, MediaDeleted, MediaChanged, etc. I wanted to implement to implement the event that is fired when a new media is added to the library as f...

Using lambda expressions for event handlers

I currently have a page which is declared as follows: public partial class MyPage : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //snip MyButton.Click += (o, i) => { //snip } } } I've only recently moved to .NET 3.5 from 1.1,...

triggering an event with jQuery live or delegate

I'd like to attach a handler to an element using either jQuery live() or delegate(). Looking at the docs I see I can attach the handler for a custom event. Is this possible for either of these jQuery functions to also trigger the handler? Basically I want to attach the handler function and run call it once. Thank you for any help. ...

Understanding AddHandler and pass delegates and events.

I am using AddHandler to wire a function to a control's event that I dynamically create: Public Delegate Sub MyEventHandlerDelegate(ByVal sender As Object, ByVal e As System.EventArgs) Public Sub BuildControl(EventHandler as System.Delegate) dim objMyButton as new button AddHandler objMyButton.Click, EventHandler ...