events

how to query for xml attribute after select change

Hi all, I have successfully loaded the xml and everything works fine if the success function runs right after loading the XML. But I wanted to get the value of the attribute after the onChange event takes place on the select box (which changes tmpproj value). When I try to access the success function checkimgs() it says $(xml) is not de...

How to ? Storing and retrieving Friends Activities relationship in Events table

Hi everyone, im trying this concept of building a friend system for my application.I have some sucess in designing a database table for storing message a member updates in his profile. This is the table model. Message_id|Message|Message_Author This is the table model to hold further message that belongs to a particular message. F...

PHP server event handling

Hello. I am looking for a way to have like a button in a web page, only when you press it the event handling is a program in a server. Like a trigger to execute a program in the server. Is there any way to do this? Cumpz. ...

How to confirm text input in Flex actionscript

What TextInput event can I listen for to throw an Alert when a number is entered? The scenario is : a user enters a number into myTxt1. An Alert appears that says "Are you sure you want to enter that number?". If the user clicks Yes, do nothing/continue. If the user clicks No, leave focus on myTxt1 so he can change the number. Problem i...

GWT: any way to track where events are being consumed or swallowed?

Is there any way to find where an event is being swallowed? I'm developing a new Panel in an existing app. The main Panel is a VerticalPanel with an existing Panel/Widget on the bottom and my new Panel on top. I have a few 'normal' events in my new Panel, such as clicking on buttons, mouse wheel handling for scrolling, which work fine wh...

How do you use $('document').ready(function()) in jQuery?

I have a piece of code that is working fine in IE, but it doesn’t run in Firefox. I think the problem is that I have not been able to implement $('document').ready(function). The structure of my json is like [{"options":"smart_exp"},{"options":"user_intf"},{"options":"blahblah"}]. I will be very thankful if someone can see my code & help...

Prevent Enter Event from Bubbling to to Main Window

I have a custom Swing component called NavigationLink which extends JLabel and implements a key event listener like so: addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent e) { boolean actionInvoked = e.getKeyCode() == KeyEvent.VK_ENTER || e.getKeyCode() == KeyEvent.VK_SPACE; if (actionInvoked && Navig...

handle an event and attach a command in the same time

Hello everybody, I have got a question about event and bound command. What happens if I bound a command to my button and also handle the click event in my code behind ? I mean, I have already tried and everything is ok but I was wondering whether this affects the efficiency or something else ? Is it a good practice ? In my case the c...

Assigning events in object initializer

Why isn't it possible to assign events along with properties in object initializers in C#? It seems to be so natural to do so. var myObject = new MyClass() { Property = value, Event1 = actor, // or Event2 += actor }; Or is there some trick that I don't know of? ...

how to specify file name and close the info path form on custom submit button?

i have submit button in the form once i click it must ask to enter the file name and once i given it it must close the particular browser tab. ...

Passing parameters to click() & bind() event in jquery?

I want to pass few parameters to Click() event in jquery, I tried following but its not working, commentbtn.click(function(id, name){ alert(id); }); And also if we use bind then how we'll do that commentbtn.bind('click', function(id, name){ alert(id); }); Please help! ...

C# - Overriding an Event Handler - Adding a parameter

I'm using the System.Diagnostics.Process class to execute a command line program. I am using the OutputDataReceived method to redirect the output to my own method. pr.OutputDataReceived += new DataReceivedEventHandler(OnDataReceived); pr.ErrorDataReceived += new DataReceivedEventHandler(OnDataReceived); However, I have multiple Threa...

State Machine Question

Hello. There is a State Machine with two Transitions in the same function. static readonly object _object = new object(); lock (_object) { // I want Host received the event of SMTrans01 first . Obj.StateMachine.Send((int)MyStateMachine.EventType.SMTrans01, new object[2] { Obj, MyStateMachine.EventType.SMTrans01 }); } lock (_o...

Why so many ColumnDisplayIndexChanged events when DataBinding a DataGridView ?

Hi, Can anyone explain to me how the ColumnDisplayIndex property is being used when a DataGridView is data bound ? The reason I ask is this. I have two grids, one above the other. I would like the user to be able to rearrange the order of the columns in the upper grid, and (via the ColumnDisplayIndexChanged event) reflect those reorder...

Explain code for custom event in user control

Someone gave me this code that works great but I would really like to understand what is happening inside it, could somebody explain please? what is the meaning of each part of the code? The code is inside a custom control which has two labels inside a panel. Also I've seen some custom control events that use add/remove sytanx, what is t...

die() on single elements

I've attached some live() listeners in order to automatically make ajax calls for every link with ajax in the url: $("document").ready(function() { $('a[href^="/ajax"]').live('click', call); }); function call(e, context, link) { e && e.preventDefault(); link = link || this; if(typeof link == "string" || !$(link).hasClas...

VB.NET DataGridView "An item with the same key has already been added." while using a unique index

VB.NET 2010, .NET 4 Hello, I've looked around and can't seem to find a solution to my problem. I have an EventLog object which inherits DataGridView and has a public variable EventList which is a List(Of EventLogItem). EventLogItem has seven properties which describe the event, including Index which is set to EventList.Count each tim...

Xcode - HitTesting returns 3 times

Hey all! I have a UIView subclass where hitTest: withEvent: is overridden. Every time a hit test registers, the view logs its tag. Ex: Click Console: You Touched View: 3 You Touched View: 3 You Touched View: 3 My question: Why does it do it three times? I need it to trigger something other than an NSLog and I'm afraid that it will t...

How to call a method before the mehtod of requested controller is executed : magento

Hello Experts, I want to call a method before the execution of every and each controller's method. I don't want to go and call the method in every method. I just want to call it from one place and it will be called before any method of any controller in magento. And I am sure we can do this but I don't know how it can be accomplished. ...

unbinding mouseover event on click event

hi i have following code in this i have div card-208 on click i dont want to show the divtoshow div but on mouseover i want to show it wil some delay but not on click <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" di...