events

Custom Event Calendar

Anyone know a good source for building a custom event calendar? ...

JQuery 'binary lock' emulation

Hi all, I have an html page full of data. Whenever the user hovers over an entry, a popup window appears (similar to a tooltip). I want this tooltip to stay in view as long as the user does not click outside of it, AND lock out other tooltips from being displayed. My question is this: How do I "lock out" other hover events, either by u...

When to use events?

At work, we have a huge framework and use events to send data from one part of it to another. I recently started a personnal project and I often think to use events to control the interactions of my objects. For example, I have a Mixer class that play sound effects and I initially thought I should receive events to play a sound effect. ...

How to make groupbox invisble on select of a radiobutton

Hi, I am doing an Windows Application using XAML ,WPF in C#. I have 2 radio buttons called "WriteData" and "ReadData". when writeData is selected, I need groupbox with a textbox and browse button inside it to be displayed at a particular location, (this i have already designed in UI..) <GroupBox Header="Browse Data" Name="grpBrowseDa...

WPF: Asynchronous progress bar

I'm trying to create a progress bar that will work asynchronously to the main process. I'm created a new event and invoked it however everytime I then try to perform operations on the progress bar I recieve the following error: "The calling thread cannot access this object because a different thread owns it" The following code is an at...

How can an underlying view know if it's rectangle got touched, no matter if directly or indirectly?

This is for learning: I have an UIView which is transparent and covers almost the whole screen. I left 50 pixels at the top. It is a child of the View Controller's view. Underneeth the UIView there's MyView that inherits from UIView, which matches the screen size. And inside this MyView class, I ask for a touch on it very simple with...

How to unit test jQuery keyboard events?

Is there a way to test JavaScript keyboard event handlers (for keypress, keyup, keydown events)? I know I can declare event handlers like this: function keyUpEvHandler(e) { ... // code here } $('#myId').keyup(keyUpEvHandler); and then just run this function in unit tests, but I will have to prepare event argument object to be th...

How wrong is it to create an event handler delegate with out the standard (Obj sender, EventArgs args) signature?

I understand the benefits of using the standard MS event handler delegate signature as it allows you to easily expand on the information passed through the event with out breaking any old relationships that are based on the old delegate signature. What I'm wondering is in practice how often do people follow this rule? Say I have a simpl...

Intercept WM_DELETE_WINDOW on X11?

I'd like to intercept the WM_DELETE_WINDOW message that is posted to a certain selection of windows that an application I'm writing (AllTray), so that I can act on it instead of the application receiving it. I'm currently looking at trying this at the GDK level via gdk_display_add_client_message_filter if possible, but I'd be happy with...

Why do exceptions propogate out of an event handler?

Consider the following program. How is the behaviour that it displays (namely that exceptions will propagate out of an event handler) a "good thing"? As far as I can tell, it could only ever be bad; unexpected exceptions popping up from functions that they shouldn't. In my particular case, it was killing threads. So, is this behaviour ac...

jQuery Change event on an <input> element - any way to retain previous value?

I've been searching around this morning and I'm not finding any simple solutions... basically, I want to capture a change in an input element, but also know the previous value. Here's a change event and an input element in its simplest form. Clearly, I can get the new value with $(elem).val(), but is there a sneaky method I'm missing f...

Detecting Flash "Click" Event in JavaScript Across Browsers

Is there a way JavaScript can detect clicks (or mousedown, mouseup) that happen on Flash objects? I have tried: Attaching the 'mouseup', 'mousedown', and 'click' events to the Flash object using attachEvent/addEventListener Directly attaching the 'onmouseup', 'onmousedown', 'onclick' events inline on the Flash object Switching from ev...

Is there a tool that can record Internet Explorer DOM events and record them into XML or TXT?

This tool have to record all (or filtred) DOM events of Internet Explorer and allow to record them into an XML File or a Text file. ...

Parent Control Mouse Enter/Leave Events With Child Controls

I have a C# .NET 2.0 WinForms app. My app has a control that is a container for two child controls: a label, and some kind of edit control. You can think of it like this, where the outer box is the parent control: +---------------------------------+ | [Label Control] [Edit Control] | +---------------------------------+ I am trying...

How would I bind this to the onclick event in JQUERY?

I have the following which i use in a traditional onclick event for a DIV tag How would I go about implementing this using jquery? $parameter = "onClick=\"selprice('" . $price_options_array[$price_counter]['price'] . "','" . $price_counter . "')" . "\""; I use the above and just add it to my div like so: <div class="price_row" <...

Google Calendar PHP - Event URL / ID? (Zend_Gdata)

Hey everyone, I have modified my PHP web app to add events to a Google Calendar. Currently, it adds successfully. However, now I wish to delete and edit events. This seems easy to do, except for the fact that I don't know what event URL is associated with each event. Am I supposed to set this event URL (or ID?) upon adding an event? H...

Firefox DOM2 mouse down event selects elements when using stopPropagation

I have a link element where I capture the mousedown event and stop the event from bubbling so that other elements in the page don't get selected. However in firefox (3 & 3.5) when i use the DOM 2 event model It still selects other elements in the page. I have tested it in opera and it works fine without selecting other elements. Also a...

How to stop event bubbling on checkbox click

I have a checkbox that I want to perform some Ajax action on the click event, however the checkbox is also inside a container with it's own click behaviour that I don't want to run when the checkbox is clicked. This sample illustrates what I want to do: <html lang="en"> <head> <title>Test</title> <script type="text/javascr...

Javascript events not firing in the expected order

So I have yet another little JavaScript issue with my current project: JS events aren't firing in the order that I expect them to. Let's say I've got a text field with an onBlur event that fires an AJAX call that does some calculating on the server (I'm using .NET 3.5's WebServices with JSON). Its callback method populates a page full ...

C# - Check datatype of a value via if condtion

I am binding an ArrayList() to a Listbox control and assigning out an Displaymember and Value on data in the Array. My problem is that I Bind on startup but the Array gets filled after a few function calls. I have code on selectedIndexChanged to check the selectedValue but if the ArrayList is empty it returns an object, once it has data ...