events

HTTPService event listener so it triggers something when ".send" method gets data from XML.

Good day everybody. I've doing a bit of "training" at working with Flex and Remote Data from XML files. This is my HTTPService <mx:HTTPService id="loginData" url="com-handler/basic.xml" showBusyCursor="true"> </mx:HTTPService> I have a button and when its clicked its call a function, that calls loginData.send and does a little IF co...

Expression blend click event animation

Hi I'm a newbie at expression blend. I've created a button and added a storyboard animation within it. I've also added a hyperlink behavior. The link works but nothing happens when I hover over it to reveal the animation. Are there any tutorials on how to link hyperlinks with animations? Any ideas would be much appreciated :) Thanks ...

jQuery: Target all except ___?

I'm looking for a way to select all elements on a page, except those with a specified DOM location.. Here's an example of what I'd like to do: jQuery('*').except('.ignore').bind('click', function(e) { ... }); Is this possible in a "native jQuery" way? ...

How to call simplemodal osx plugin programatically?

I've implemented the simplemodal plugin for JQuery. Very nice btw! Where I'm having an issue, is I have a list of links that are generated from a database, when I click one, I make a "load" call and add the results to my osx-modal-content div. How do I call the osx plugin after my load completes? If I add class=osx to my a href, the moda...

WinForms - Prevent the Changing of a ComboBox - DropDownList mode

In Winforms what is proper way to keep a user from changing the value of a DropDown? I want to prompt the user to say that there are unsaved changes. If the user decides to not throw away these changes I want to cancel the combobox changing. Any ideas on how to do this? I though I had seen a e.Cancel option before. But maybe not on Syst...

How does one autohide a GWT MenuBar submenu?

We have recently attached a GWT MenuBar to a part of our application for, well, menu purposes. Basically I want the sub menus to open when you mouse over the top level menu, which is easy enough to do: menubar.setAutoOpen(true); I would also like to have the sub menu automatically hide when the user's mouse leaves the sub menu. Ideal...

when browser closed update table and destroy session using ajax

I need to update a table when user closed the browswer window and also want to destroy session . its urgent guys ...

how to create own MouseButtonEventHandler in WPF

hello, I create MyWindow class derived from Window, and I capture the Window Messages refer nonclient area, for example WM_NCLBUTTONDOWN, it works :). I want create my event and rise them when the message comes. public event MouseButtonEventHandler MouseButtonDownOnCaption; protected virtual void OnMouseButtonDownOnCaption(obj...

Bind macro to excel cell onclick?

In excel 2000, is it possible to bind a vba function to be executed when a cell is clicked with the mouse? ...

Firing a macro on saving a calendar event - Outlook VBA

Hi, I'm trying to automate the adding of a keyphrase to events added to my outlook calendar (depending on the type of the event, want to add different keyphrases so that my smartphone profile switching software will correctly switch the profile depending on what I'm doing...) Ideally, I'd want to hook an onsave event for calendar items...

WPF WebBrowser events for HTTP errors?

I have a WPF application and I'm using the WebBrowser control to display some content from a public website. Sometimes in weird edge cases when the network connectivity is flakey, the web browser will show the "This program cannot display the webpage" error page. Is there some way to listen to the WebBrowser to detect when this occurs,...

Overriding the F1 key in FF, chrome, ie. Is F1 on ie8/chrome on keyup and in FF on keypress? What about <tab> in an input field?

I'm creating namespaced events with jquery. When I use the following function with code=112, a function, bool=false, everything works fine in FF and the F1 key submits to my function and the event does not bubble up to open the firefox help in a new tab. function bindKeyFunc(code, func, bool){ $(document).bind('keypress.' + code, f...

How to set user control properties before it gets rendered?

I have a User Control (uc) on a page. uc exposes some properties that get set on Page_Load() event of the parent page, and should be read while user control loads up. Looks like Page_Load() of the uc fires before any properties get set from the parent page. On what event should I set the uc properties so that it can use those propertie...

Events not firing for dynamic columns in SharePoint DataGrid

In a Web Part for Sharepoint, I'm trying to add a variable number/ordering of ButtonColumns to a DataGrid dynamically based on an option the user has selected. The problem is that the dynamic columns aren't firing off the events I set up on the DataGrid (such as SelectedIndexChanged). When the table originally constained a static set o...

Prototype equivalent for jQuery live function

I need to bind event listener to all dynamicaly created elements by given css selector. In jQuery, that would be $(".foo").live("click", function(e) { // bar }); Is there any equivalent in Prototype for this? ...

What is the best way of subscribing to events in ASP.NET?

I've done some reading on SO, but didn't find the answer to my question. As @Canavar points out in his answer there are 2 ways to subscribe to an event: Declarative: <asp:Button runat="server" ID="myButton" OnClick="myButton_Click" /> Code Behind: myButton.Click += new EventHandler(myButton_Click); I subscribe to events declarati...

PowerShell: how to get detailed information about a WMI event?

I'm learning PowerShell 2.0 on Windows 7. My task is simple: I want to listen for a WMI event and then display some information about it. Here is what I'm currently doing: Register-WmiEvent -class win32_ProcessStartTrace -sourceIdentifier processStart Wait-Event It seems to work. Indeed, I get this when I start a process: ComputerN...

KeyDown event gets invoked twice

I've got this Prototype code to detect Enter pressing in textarea. document.observe('keydown', function(e, el) { if ((e.keyCode == 13) && (el = e.findElement('.chattext'))) { e.stop(); // foo bar } } And html <textarea id="chattext_17" class="chattext" cols="20" rows="3"></textarea> But the problem is, that ...

Allow button click through layer in Flash/ActionScript3

I have the following layer structure in Flash: Spotlight - Has a transparent center area, is a bitmap symbol Button How do I make Button clickable even though the Spotlight layer? I want to toggle the visibility of the Spotlight layer with the click of Button like the following code. Button.addEventListener(MouseEvent.MOUSE_CLICK, O...

find out instantiating object in the constructor of a class

How can i get hold of the instantiating object from a constructor in java? I want to store reference to the parent object for some GUI classes to simulate event bubbling - calling parents handlers - but i dont wanna change all the existing code. ...