events

What's the state of art steps to calculate the position of an event?

Suppose the event is e. How to know where it happened (as in position)? I'm also using jQuery. ...

Writing to a server, reading from a cache.

I have a client WinForm that uses a web service to write to a server database. When it loads, it starts a thread that polls the server for new entries to the database. When found, the new entries are downloaded and stored in a cache (embedded database). The thread flow is as follows: while(continueSynchronizing) { foreach(Table t i...

sharepoint - on delete item event - how

Hi chaps... I have in sharepoint a workflow process that runs when a task is added to project tasks, i also then add an entry to the 'calendar', when the item details change, name or dates in either calendar or tasks both update fine. What i would also like to do is when i delete an item from 'project tasks' that the related entry in t...

Overriding target in jQuery event

Is it possible to override jQuerys target in a custom event? f.ex: var scope = function() { this.param = 'foo'; } var instance = new scope(); $(instance).bind('bar', function(e) { console.log(e.target); }); $(instance).trigger('bar'); This outputs the entire instance object, as it should. But if I want target to be someth...

How to trigger an event at 03:00 every night?

How is this done best? I want an app that's running on a server to trigger an event every night at 03:00. ...

Firebug: "event is not defined"

Hi there. I have a constructor with these methods: function getMouseXY(event){ var x = event.clientX - this.offsetLeft; var y = event.clientY - this.offsetTop; return [x,y]; } function alertx(){ var c = this.getMouseXY(event); alert(c[0]); } In the HTML code i assign the alertx function to a HTML5 can...

How do I fire an event safely

When there are no subscribers to an event how do I ensure that an exception will not be thrown if the event is fired. // Delegate declaration public delegate void _delDisplayChange(object sender,string option); // Event declaration public event _delDisplayChange DisplayChange; //throwing the event DisplayChange(this, "DISTRIBU...

WPF KeyDown and Keyup events

Hi when I do in one of my user controls in a WPF application, this.KeyUp += new System.Windows.Input.KeyEventHandler(MultipleControlViewer_KeyUp); or this.KeyDown += new System.Windows.Input.KeyEventHandler(MultipleControlViewer_KeyUp); or this.AddHandler(Window.KeyDownEvent, new System.Windows.Input.KeyEventHandler(MultipleControlViewe...

Furture Details on Vallidating Event not Working....

I have created a custom control that inherit the TextBox, in that control i have override validating event and in validating event i have put validation that checks for the empty field. No when i use that control on my winform and when i click on save button it immediate fires save event.. the validation event of custom control fires an...

Further Details on Vallidating Event not Working....

I have created a custom control that inherit the TextBox, in that control i have override validating event and in validating event i have put validation that checks for the empty field. Now when i use that control on my winform and when i click on save button it immediate fires save event.. the validation event of custom control fires a...

How to fire "onload" event on document in IE

I am currently developing Unit Tests for a Javascript method that detects the readiness of the document. This code is already at framework level, so please avoid mentions of this being already implemented in jQuery or another library. I have successfully simulated the 'readystatechange' change event with the following code: var event; ...

jQuery ready event not fired on partial page load

Here's the situ: A page which contains html and using the jQuery libray and tabs jQuery UI plugin loads another page when some tab is clicked. The problem is that when the page/html is loaded/rendered (let's simplify this and say it's just doing something like $("#myDiv").load(url);), the ready event is not fired because of course the "...

What technologies are available for a publish/subscribe model using .NET?

I'm currently working on an application where one component of the application needs to interact with multiple other system components based on certain events. These events occur based on many different triggers... some events are caused by a user's action where other users need to be notified, some events are time-based, and other even...

Best way of catching a postback in javascript?

Hello. I am needing a piece of javascript to be run whenever a postback occurs. Well, actually multiple pieces. This is to be done inside a custom control, so the javascript code that should be run may be used a lot of times. I currently have it so that the custom control will create a chain of "overrides" for the __onPostBack function...

Add a Load event for Winforms Control just as Form class

Hi, is there a way I can get a Load event for System.Windows.Forms.Control just like System.Windows.Forms.Form.Load? I want to run some initialize code before the control first shown. Also, it would be nice to be able to do the same for System.Windows.Forms.ToolStripStatusLabel which is not actually a Control, but works like one. Idea...

Handling touch events on UI Controls using Objective C (iPhone Development)

Hi, I am new to iPhone programming (Objective C language). I need some help. I am working on event handling on the controls like UITextField, UISlider, UISwitch etc.. How can I fire touch events on these controls (touchesBegan, touchesEnded, touchesMoved, touches Cancelled). I found that the touch events do not fire directly on these c...

Using loops, arrays and IEventDispatcher with URLRequest.

So basically I have this map. On this map I have points, and when you click on these points it goes to a URL. The code setup is as follows: Arrays to define the movieclip locations and another for the urls (this one is an associative array). I then create a function loop to make an event listener for each point. When the point is clic...

ListBox with DoubleClick on Items using DataTemplate

Hello, i want to know a double-clicking functionality for a list-box kann easily be build. I have a list-box with a collection as ItemSource. The collection contains own data-types. <ListBox ItemsSource="{Binding Path=Templates}" ItemTemplate="{StaticResource fileTemplate}"> I defined a data-template for my Items, which con...

Swing question / JTree / custom tree model

Hello, I'm having a problem and hope, someone knows what's going wrong and why and is able to give me the explanation of what I'm missing out right now to make that thing work as suggested. I have a JTree which is build upon a custom TreeModel ("WRTreeModel", see below). The data structure this model shall be used for is build of an ro...

mouseleave event not firing when moving over child Flash movie

I'm trying to get some rollovers to work, but I'm running into a mouseleave problem. Everything is working, except there is a Flash movie that is near the top of one of the rollover targets. When the mouse leaves by moving off the top of the element, the event doesn't fire because it's leaving the element directly from the Flash movie. ...