events

jquery event clean implementation

hi im not sure where to start on this as events and their handlers is my weakest point in programming. ... setInterval(function(){ //code goes here },1000); as we know this runs in an infinite/loop my question is if the code inside the function takes longer than one second (e.g: 5 seconds) to finish does the interval on the 2nd,3r...

Iphone UINavigationController onchange event

Hi there, i have an app that uses a navbar. What i want to acomplish is make it transparent when i push in the last view from the nav sequence, and make it opaque when i click the back button on the nav i tried with on dealoc, but it doesn't work. My view is an UIScrollView not an UiView, but i guess that makes no difference. As i see ...

Responding to linked Delphi Component Events

I have a custom Component (cut down) TMyComponent = class(TComponent) public procedure ClientConnected; published property ClientSocket: TClientSocket Read ...etc Right now i have in the OnConnect Event of the ClientSocket Call ClientConnected e.g. procedure TForm1.ElvinClient1Connect(Sender: TObject; Socket: TCustomWinS...

Resize issue to fit dynamically with any browser size

I'm trying to make full flash site dynamically resize in any browser size. If the browser gets smaller than the site MC should constrain to fit in the browser. (EX: 1440x900) What I have right now works like 98% of the time, but when I switch to a bigger screen size, it screws up and makes the site tiny from left to right (menu, logo, ...

wxPython, variable not updating correctly

Hello my StackOverflow friends. I have been doing wxPython tutorials and reading the documentation, so far I like it. I wanted to make a simple app first. What this app would do is send a command to a micro controller to turn a relay on or off. I have a global variable to get the COM port to be used (Instead of hardcoding COM1 in for...

How to get the value of a field during the paste event?

I have a text field that I'm binding the paste event to using JQuery. When I first paste something into the form field and log its val() it returns a blank string. Likewise, if I paste again into the field, it returns the previous value before pasting. Essentially I have a race condition or sequencing issue, for lack of a better term....

Disable touch events while processing

I have a button which should not be clicked by user, when some processing is going on [shown using UIActivityIndicatorView]. For this when the processing starts i call [[UIApplication sharedapplication] beginIgnoringInteractionEvents]; and when processing ends i call [[UIApplication sharedApplication] endIgnoringInteractionEvents]; If...

Do I need to manually remove all event to make my object remove from memory?

I have read in MSDN that is require to Unsubscribing every events an object has to be able to dispose it from memory. I always used -= to remove all references to event inside my object (like MSDN show). Now, I have to maintain code and it has some memory leak on it. I see that the previous developer simply set the object that has all e...

How do I create a custom event class in Javascript?

How do I create a custom event class similar to ActionScript? What I mean by that is a class that I can use to fire off my own events, send the necessary data. I don't wanna use third-party libraries like YUI or jQuery to do it. My goal is to be able to send a event that looks like this. document.addEventListener("customEvent", eventHa...

jquery event element

I have this code: $(".testing").sortable({ helper: fixHelper, containment:$("testing").parent(), start:function(){ if($(event.target).hasClass("test")){ alert("hello"); } if($(this).hasClass("test")){ alert("hello"); } } }...

How to obtain feedback from an event?

I wonder how to obtain feedback from an event? Situation: Let's say that a object (Slave) can produce events(request changing a property). An other object (Master) subscribes to these events, analyzes the changing property value and accepts, or denies this change. Then the feedback is returned to the Slave, and it change or not its pro...

select option hover is not working in IE

I wrote a little code to get some tooltips in my multiple select box, The code is working file in FF but not in IE :( ex: $('#select > option').mouseover(function(){ alert($(this).text()); }); Can anyone help me? ...

Trigger and Event from within jQuery

I am looking at the possibility for an AutoCheck style jQuery HTML application that every 5 second it goes off the a DB and checks some data. That is the easy part, which I can do. Now what I would like is to have an AutoCheck time going, something like var t = setTimeout("autocheck()", 5000); So every 5 seconds it is triggered, and...

jQuery event problem when implementing contextmenu?

When the contextmenu is shown, if the user clicks out of the contextmenu, should hide it. How to implement this functionality? Is it possible to listen for click_out,and when it's detected,hide contextmenu and clear that listener? ...

How do I know whether there is a specific listener on an element in jQuery?

Or how do I know whether this below has been run or not: $target.bind('click',function() { ... }); ...

Flex: AdvancedDataGrid Tree dropParent

Hi I have an AdvancedDataGrid tree with a ArrayCollection as its dataprovider. Now, for instance, i drag a leaf from one node to another node. To catch the event I'm adding a Listener to dragComplete. advancedDG.addEventListener(DragEvent.DRAG_COMPLETE, dRAG_COMPLETE_Handler); public function dRAG_COMPLETE_Handler(event: DragEvent):voi...

Event that fires when a form changes

I have form that displays information on a project. Most of the fields on the form are bound to a Project table and display and update as bound fields do. However, I also have 10 checkboxes that come from a ProjectAudience table. Only if the box on the form is checked, is there is a matching record in the table. Therefor, I need to inser...

wxWidgets socket events in a DLL

I'm working on a project that is using wxWidgets sockets in a DLL and I'm getting odd behaviour. I'll go through the problem from the top and drill down. I apologize if I've provided too much (or too little) information; I've tried to prune down the excess. First, the odd behaviour: The server is created, and my client connects to it. ...

Stateful eventing in C#

Are there any stateful eventing mechanisms in .net(c#) or any libraries that will help me maintain a state for the events fired By stateful I mean an event when fired is serialized to a persistent storage. If the system fails for some reason and then when it is bought back picks up the serialized state and then fires it again. I am a...

Creating facebook events via cron-job

I am trying to create facebook events via cron-job. The events should be created on behalf of users of my facebook-connect-site, who have granted offline-access. I have session_keys that do not expire, but can't get it to work! Creating events on behalf of my app works like a charm, is just not what I want... var_dump($event) with some...