events

Python: read user-input directly from the prompt

Hi! I have to validate user-input from stdin that is not going to be entered by hitting the Enter-key. So readline() and other Enter-dependent functions are of no use to me. Practically the promt will be filled, and each keystroke has to be handled as an event. How do I get access to the promt buffer's contents? ...

Want to do work on my Application Uninstall:android

Hi all, i am aware of android BROADCAST_PACKAGE_REMOVED for notify when any application is uninstalling from device. Now it is possible that when i uninstall one application and that application do some work before and uninstall. e.g: my application work with android contact if application uninstall at that time i want to change in con...

[SOLVED]How to propagate keyPressEvent on different qt QMainWindow

I have 2 different QMainWindow, the first is the parent of the second. I want press some keys in the children windows and propagate the event in the parent. I create for everyone the function void keyPressEvent(QKeyEvent* event); but when i press key on the children the event is not propagate to the parent. Why? This is the code... //P...

Is it possible to figure out WHAT is changing in a RowChanging event?

The DataTable class has RowChanging as well as RowChanged events, which is convenient (for those of us foolish enough to be using the DataTable class in the first place). Event handlers for these events take a parameter of type DataRowChangeEventArgs, whose properties comprise a DataRowAction (Add, Change, Delete, etc.) and the DataRow b...

How do I pass a JSON object to FullCalendar from Django (by serializing a model)?

FullCalendar supports taking in a JSON object through AJAX for it's events, this can be done on initialization or later like this: $('#calendar').fullCalendar('addEventSource', "/{{ user }}/events/" ); The serialization itself in my Django view looks like this: ... events = Event.objects.filter(user=request.user, start__gte=start, en...

Ext.TabPanel items handler

Hello. Is there any possibility to get an event when you click on the tab? var buttons = [ { title: 'Home', iconCls: 'home' }, { title: 'Search', iconCls: 'search' } ]; var panel = new Ext.TabPanel({ fullscreen: true, cls: 'panel', ui: 'dark', tabBar: { ...

Get target event with same z-index

Hello I have some divs on the page with different sizes, but with same coordinates and same z-index. How I can get the clicked elements diferently? ...

Event Handler access context JavaScript

I have a question in JavaScript context. I'm a little confused by this issue. The code below describes my question: $(..).someFunction{ var outOfScope = "OUT OF SCOPE!"; $('somelink').click(handler); function handler() { alert(outOfScope); } } My question is: how outOfScope variable (which was defined outside the handler...

Store alarm value of ical

I used fetch events method and fetch all the events from iCal but i need to fetch and store alarm value in array please help me i need to to do in next two hours ...

[iPhone sdk] Passing touch events to appropriate sibling UIViews

I'm trying to handle touch events with touchesBegan in an overlay to a parent UIView but also allow the touch input to pass through to sibling UIViews underneath. I expected there would be some straight-forward way to process a touch event and then say "now send it to the next responder as if this one didn't exist", but all I can find i...

Sinking DWebBrowserEvents2 events appears to hang programmatic navigation

I posted this question on the MSDN forums, but my experience has been a better quality of answer here on Stack Overflow, so I'm posting here as well. As I've posted several times before, I'm working on a browser automation framework, automating Internet Explorer from an external process. My architecture is as follows: I have a server whi...

How can I use $(this) inside of Fancybox's onComplete event?

I'm trying to use jQuery's $(this) inside of Fancybox's onComplete event, but I'm running into trouble. Here's my javascript code: $('a.iframe').fancybox({ centerOnScroll: true, onComplete: function(){ var self = $(this); var title = self.title; alert(title.text()); } }); I have simplified the code abo...

grails events and cascaded saves

Hi, do grails events like beforeInsert or afterInsert get invoked on cascaded saves? I wrote an integration test and i find that the events are getting invoked on an explict save and not on cacaded saves. Is there any way i can invoke the event on a cascaded save? ...

Events not firing/or observer not working in magento

Hello, I have a module which listens to a few events. It works fine in at least a dozen installations I have tested it on. On on specific installation, a client which I installed it, on Magento version 1.4.1.1, It does not work. When I tested his system, and I fire the events manually, eg Mage::dispatchEvent('..') the observer does lis...

Mysql events wont start.

I'm running mysql 5.5.6. It was working, then crashed. I re-installed server, then restored db which has SP and events. My SP show up, but my events dont. The Infomation_schema/events table is blank. I had this problem before, I ran something from C: prompt I cant remember what I did? Its not global event_scheduler problem. The ...

Trigger event with newly created anchor elements

I'm using the fancybox lightbox plugin in jquery. It hooks into anchor tags such that the following pulls up an image that is chained with the other images referenced with rel = "example_group": <script type="text/javascript"> $(document).ready(function() { $("a[rel=example_group]").fancybox(); }); </script> <body> <a rel...

Mouseover script not working... Need help.

Can someone try this and see if it works for you. I can't figure out the problem.. Maybe I have a conflict somewhere. Using jquery. Thank you so much for the help. <script type="text/javascript"> $(document).ready(function(){ $('a').mouseover(function() { switch ($(this).attr('class')) { case 'nc1': new_content = 'Twit...

Event does not hook up correctly

Hi Folks Not sure if i will be able to formulate my question quite clear but let me try: So i've written a small piece of code which will give the user the option to select a desired status for his Office Communicator when his PC get locked ( by default it goes automatically on status "away" ) .So here it is the Windows Form wich is b...

How can I detect when new windows are opened and/or get a list of open windows?

I am aware of WindowListener and its ilk, but these only seem to provide events for windows to which you have a reference already and can add the listener to. I'm wondering how to either receive a callback when new windows are created by other processes, or poll for a list of all windows currently open on the system. I'm using J2SE on ...

Firefox not registering onclick event handler

Below are two snips of code for assigning an event handler for an onclick event. Version One works in IE, FF, Safari and Chrome. Version Two works in IE, Safari and Chrome, but not in FF. In Version One, I register the event handler in the markup. In Version Two, I use a newer, and supposedly more robust, method for registering the event...