events

ASP.NET Can not Change Visibility of a Formview control

Hi I feel this is stupid, but what the hell... this is two lines of a methods that handles a dropdownlist event: resolve = (Button)FormView1.FindControl("btn_resolve"); resolve.Visible = true; It used to work with me earlier! Not working now ...

Using JQuery, how do you detect if the value of a text input has changed while the field still has focus?

I noticed prior to posting this question that there have been similar questions posted on this topic before, however the user isn't interacting with the text field by using the keyboard in this instance, in such case binding the text field to the "Paste" action or any of the other nifty suggestions wouldn't work in my case. Our users ar...

jQuery hover over child elements makes quirky effects

Hi I've got this markup (simplified): <div class='item'> <a> one link </a> <a class='trash'><img src='trash.png'/></a> </div> I'm highlighting the div when the mouse enters, and showing the (otherwise hidden) 'trash' link (it's like a tiny trash bin) so the user can delete the link. I can't use 'hover' effect, because I need the...

Accessing Event Arguments in Action scriptblock of Register-ObjectEvent cmdlet

Is it possible to access the Event arguments in the -Action scriptblock of the Register-ObjectEvent cmdlet? And if yes, how? ...

Wire _KeyDown event of textbox to a _click event of button control

I have a form with a textbox called 'tbWO.' This field is used to enter a Purchase Order Number. I also have a button control called 'btnFill.' When btnFill is clicked, it fills a dataset with a parameter from 'tbWO.' I would like to be able to press 'ENTER' in the 'tbWO' textbox (after a Purchase Order # is entered) and have it fire...

Capture text selected on a web page (a la politico.com)

I'd like to be able to figure out the text that a user highlights on a given web page (we use jQuery if that helps), to capture and store in a database. Politico.com does this in a pretty slick way -- if you highlight text on an article page there and copy it, you copy not just the highlighted text but also a link back to the politico.c...

How to detect if the delete key was pressed in Actionscript 3?

How do I determine if the delete key was pressed using actionscript? addEventListener(KeyboardEvent.KEY_UP, onKeyUp); ... function onKeyUp(event:KeyboardEvent):void { trace(event.keyCode); } The above code yields no value when delete, backspace, enter, and other command keys are pressed. However, arrow keys do yield values. ...

Google Maps API v3 JavaScript EVENTS question

In Google Maps API v2, I used the following events to each perform different tasks. loaded tilesloaded moveend What is the equivalent of these events in API v3? ...

Events in a Dependency Injection system go which way?

Up or down? I'm a very visual person. I'm thinking of my application as a hierarchy, where the top is the root and the bottom is a leaf. I'm also under the understanding that, in DI systems, containers are ignorant of their contained objects' responsibilities/functions. Instead, the contained objects know about their context because th...

Time-passage callback when rendering recorded and live/streaming audio/video.

Guys...! I'm a complete newbie to this area of audio/video formats/codecs, their players, their exposed APIs, etc. Would greatly appreciate your patience as well as advice on this question of mine. Question: Almost all audio/video players show time-passage information in hh:mm:ss format. I want to be able to register a callback of mine ...

WebControl button event

Hello, I've just made my first WebControl, but I'm having some troubles. Here's a sample of what I have so far: public class NotificationPopup : WebControl { public bool? IsAccepted { get; set; } public void Show() { Panel root = new Panel(); Button b1 = new Button(); b1.Text = "Ok"; b1.Cli...

Is there an event called when a column is moved in a JTable?

I have a JTable with several columns and rows. Once the user has moved the column, I would like to be informed via an event of some sort, so that I can do some calculations. However, since all I needed to do was `table.getTableHeader().setReorderingAllowed(true);` to get the columns to be movable, I am somewhat unsure what I can use ...

How can I apply an event to a simple link element in ASP.NET

I have an <asp:Image> element and a text caption, surrounded by an <a> element. I need the link to run a method when clicked, changing the ImageUrl property of another <asp:Image> element. I'm a total noob with ASP.NET (Clearly.) Can anyone explain this process to me? ...

Getting the original this in an object for jQuery event handlers etc. when using class inheritance

I know that jQuery isn't designed for working with a class-like model but I really could do with being able to extend a base class as that fits my needs perfectly. I started by just doing the following: jQuery.myBase = { foo: 'bar', bar: function() { ... } } jQuery.fn.myPlugin = function() { $.extend( this, jQuery.myBase, {...

jquery event capture

i have some images loaded viad load method, something like this: <ul> <li><img src="1" alt="" /></li> <li><img src="2" alt="" /></li> </ul> on mouseover i want to append a div inside that <li> with a greater z-index than the img so that div comes "in front" of the image(like a bar with links for image editing).On mouseout i want...

keydown on checkbox doesn't bubble in FF, but it does in IE. How to solve?

Using jQuery, I bind keydown globally like this: $(document).bind('keydown', function(e) { alert('keydown fired'); }); When I press a key having focused a text input field, the alert shows just fine. But when I focus a checkbox and then press a key, it does not fire. Not even with the keypress event. Why do these events not bubble up ...

Shake Detection iPhone 3.0 not working

I have a ViewController that works perfectly with a button that trigger an action. I would like to replace the button with a shake event so I've googled it around and created a ShakeDetector class that ineherits from UIView and my implementation is as follow: @implementation ShakeDetector - (void)motionBegan:(UIEventSubtype)motion...

Does Events Handlers in JavaScript for one event fired as FIFO, LIFO or in parallel?

Does Events Handlers in JavaScript for one event fired as FIFO, LIFO or in parallel? ...

How to get something like PreviewSelectionChanged event in ListBox?

I need to perform some actions when list box selection is about to changed, but old item is still selected. Something like PreviewSelectionChanged. Does WPF allow such operation? I can not find such event in ListBox control. ...

Unbind jquery plugins

Hello, I'm sure this is simple but I'm banging my head! I'm using the excellent jQuery plugin editable (http://www.appelsiini.net/projects/jeditable). Users can create a form on the fly, and click to edit the title, the body of the text, whatnot. Every time the user creates a new question, I rebind the plugin like so: $('.edit').edita...