events

javascript function arguments in Jquery

Dear all I am using the JQuery and Javascript.I have onclick event ,that calls the javascript function. How to extract the arguments of function_A and function_B in JQuery And Is it Any Best way to do It? I need to Do ajax Call after javascript Click.Is any performance based issue ...

CATIA-CAA CATKeyboardEvent

I know there are only a few CAA Programmers in the world but I try it anyway... I can't get keyboard events to work. I found this code which looks reasonable but the Notification doesn't fire. AddAnalyseNotificationCB(CATFrmLayout::GetCurrentLayout()->GetCurrentWindow()->GetViewer(), CATKeyboardEvent::ClassName(), (CATComma...

jQuery click event for document but ignore a div

I have a online Slide Show I'm working on using jQuery. I have use $(document).click event to detect when a user clicks on the page to know when to show the next bullet point in the slide or to move to the next page. The problem I'm running into is my job had me insert a comment box on the bottom of the page and when ever someone clicks...

Uses for OnItemDataBound

What would you realistically use OnItemDataBound for on a Repeater ? ...

Asp.NET: UserControl's BubbleEvent not being handled by repeater or page

I have a user control inside of a repeater. The user control has an ImageButton, which when clicked, should raise an event to the page which will handle the event: //Button onClick event in user control protected void btnOpenOption_Click(object sender, ImageClickEventArgs e) { RaiseBubbleEvent(sender, e); } The following are two ...

Javascript Event Handler for Print

I am trying to alter style at print-time: Is there an event in javascript that you can listen for for when file>>print is called? What is it? Also - is there a handler for when printing is finished? What is it? or if there is a better way to do this with some other means, such as style sheets, how do you do that? ...

Regarding a JavaScript mouse event anomaly I'm having trouble with...

I'm in the process of designing a small RPG-like interface where the user will be given the freedom to create the items and weapons they use. Rest assured, that particular system is thought deeply through and is not the cause of my concern. : ) No, it is something related to the mechanism I have set up for the actual drawing of the user...

C# unhook event

I am using standard windows forms controls under C#. Short version: is there any problem unhooking a delegate which hasn't been hooked? Full question: I have two controls which are different ways of setting a single value. Thus when one is changed, the changed event handler computes a value for the other and sets it. So I need to un...

ASP.NET Preload Post Back Event

Is there any kind of event out there that would allow for a preload post back event. The reason I ask is I have a control that adds sibling controls to it on postback events, however, by the time it has loaded the post back its too late to add the new control to the control collection. Therefore, the controls are never updated correc...

Attaching events to Session OnStart and OnEnd using HttpModules

Does anyone know a clean way of adding events to Session's OnStart and OnEnd events using an HttpModule (without touching the Global.asax file)? ...

How can I detect a USB disconnect event? (Windows, .NET C# application)

Hi, Currently how I do this is I poll for a masked list of USB devices (masked specifically for the device I'm working with) and if it's there, I continue, if not then I notify the user that the device is not connected. The method for getting a list of USB devices is provided for me through a USB peripheral controller chip manufacturer...

C++/CLI generates ugly-looking raise_XXX methods for events

Hi, I'm writing my custom events in C++/CLI (I pretty much only care about the add/remove methods) as such: event EventHandler<XyzEventArgs^> ^Xyz { void add(EventHandler<XyzEventArgs^> ^handler); void remove(EventHandler<XyzEventArgs^> ^handler); void raise(Object ^sender, XyzEventArgs ^e); } Ever...

capture multiple "onkeydown" and wait until "onkeyup" to execute

In my web app, I use the onkeydown event to capture key strokes. For example, I capture the 'j' key to animate a scroll down the page (and do some other stuff meanwhile). My problem is the user might keep the 'j' key down to scroll further down the page (this is equivalent to fast multiple key strokes). In my app, this result in a s...

Suppress a SWF Click Event in IE, follow anchor tag instead

Scenario: You have a SWF file with a built-in click event that takes you to a certain web page. You want to use that SWF file (source isn't available), but have the click event take you to a different web page. Wrapping the embedded SWF in an anchor tag and setting the swf to wmode=transparent only seems to work in FF, not IE, and sin...

Problem with dispatching custom event in FLEX

Let me start off by saying that I'm pretty new to flex and action script. Anyways, I'm trying to create a custom event to take a selected employee and populate a form. The event is being dispatched (the dispatchEvent(event) is returning true) but the breakpoints set inside of the handler are never being hit. Here is some snippets of my...

How to catch event after default action was performed in JavaScript

Hi all, I have read in the article (the article) following concepts about event handlers: For a non-bubbling event, the sequence of the dispatch is like this: Capturing phase: All "capturing" event handlers are fired on all ancestor elements, from the top down. The event is fired on the target element, which mean...

WPF: Does MessageBox Break PreviewMouseDown?

I've been trying to get my WPF application to prompt users to either discard their unsaved changes or to cancel when they navigate using a TreeView. How can I cancel a user’s WPF TreeView click? How do I properly handle a PreviewMouseDown event with a MessageBox confirmation? I think I've found a bug. The MessageBox does not play ni...

jQuery mouseout firing when injecting child element

I'm trying to create a function which will add an overlay to a thumbnail image when you hover over it and remove the overlay when you leave it. Here is my HTML... <div class="thumb"><img src="i/testThumb.gif" /></div> And here is my jQuery... $('.thumb').live('mouseover', function(event){ if($(this).find('.overlay').length == 0){...

c# pass through mouse events to parent control

Environment: .NET Framework 2.0, VS 2008, C# I am trying to create a subclass of certain .NET controls (label, panel) that will pass through certain mouse events (MouseDown, MouseMove, MouseUp) to its parent control (or alternatively to the toplevel form). I can do this by creating handlers for these events in instances of the standard...

Java : ignore single click on double click ?

Hiya - can anyone think of a good way to ignore the single click that comes with a double-click in Java ? I'm looking to have different behaviors for each such that: single-click paints crosshairs on the click point double-click selects an object on the screen, but should not paint crosshairs on the click point ... can anyone think...