I'm having a dilemma with the Google Maps API - I'm using the GDirections object to get the time needed to travel between two points.
I've tested the following code in Firebug, so that the chances of the rest of my code affecting this one call is low (I can't link to the actual map; it's on a local computer).
var start = "NY, USA";
var...
To all;
I have created a up and down counter for decimal places and when a change occurs I have it force a blur event to recalculate fields with the following code:
$('button').click(function(){
var decPlaces = document.calculator.dpv.value * 1;
var hii = document.calculator.origin.value;
if (this.id == 'up' && decPlaces < 9){ ...
I've been looking at the selection on Amazon and
"The Power of Events: An Introduction to Complex Event Processing in Distributed Enterprise Systems" sounds like it has way too much fluff, but the other choices like:
"Event-Based Programming: Taking Events to the Limit" sound too much like a cookbook and tie you to particular framewo...
I am working on a project where I will be getting all the events that have occurred in a textarea and give a replay of the events. To fulfill this objective, I am collecting all the events that have occured in a textarea. I am storing the events in an object array containing the event and timestamp. Now for onselect events, how do i get ...
I wired the Change event handler for an ASP.NET radiobuttonlist like this in the ready() handler in JQuery like this:
$("#<%=rblYesNo.ClientID%>").change(MyFunction);
When I select one of the radio buttons, MyFunction doesn't get called. Why?
...
I'm trying to figure out how I can specify that the mouse_down event in wxPython (StyledTextCtrl) is first handled by the built in event listener, which changes the caret position, and then handled by my own custom event handler.
To bind the custom event handler I use
wx.EVT_LEFT_DOWN(self.styCtrl, self.OnMouseClick)
def OnMouseClick(s...
Hello,
Normally I setup events like this...
Public Delegate Sub MySpecialEventHandler(sender as object, e as mySpecialEventEventArgs) ' ...I will not show the implementation of mySpecialEventArgs.
Public Event MySpecialEvent as MySpecialEventHandler
Private Sub OnMySpecialEvent(newStatus as string)
Raise Event MySpecialEv...
Here is the basic gist of my problem:
My main Window class instantiates Class A.
Class A instantiates Class B in a secondary AppDomain.
Class B raises an event and Class A handles the event successfully.
Class A raises an event of its own.
Problem: In step 4, when Class A raises its own event from the event handler method that caught...
I’ve got some concerns with an approach I’m taking to centralize a calendar in MOSS. The scenario is that there is 1 calendar for the Enterprise and Events are filtered via audience targeting. It’s fairly straight forward to turn audience targeting on in a calendar, my concern comes when the client wants to auto populate that event wit...
I've got a small sprite that is the "smoke trail" behind a missile in a flash animation. I made a self-contained class to handle the creation and removal of itself:
public class Spark extends Sprite {
private var lifetime:Number = 15;
private var gfxRef:MovieClip = new fx_particleTrail();
private var canvas:Sprite;
public function ...
Is it possible to be notified of key events on an application level and not on a Component level? What i mean by application level is not having a swing component receive key events but to have a special class listen to system wide key events.
This could be used in an app with no GUI for instance or when a more global handling of key ev...
Hello,
I have a drop down list that appears throughout my site. For code re-usability purposes I made it a Server Control.
Everything was working great. However I would like to add a event handler for SelectedIndexChanged
This is not working for me:
this.OnSelectedIndexChanged = "CultureSelectorControl1_SelectedIndexChanged";
followe...
I have a list like this:
List<Controls> list = new List<Controls>
How to handle adding new position to this list?
When I do:
myObject.myList.Add(new Control());
I would like to do something like this in my object:
myList.AddingEvent+= HandleAddingEvent
And than in my HandleAddingEvent delegate handling adding position to this l...
Please check out this piece of code and tell me why on earth does it print out to the console when you move your mouse over the check box? What is the "change" event that takes place?
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
public class Tes...
I am currently working with a third party ActiveX control where I need to detect when an event I called from the API has completed.
Looking at the ActiveX control in VS 2008 Object browser, I call public virtual bool MyMethod() and there is an event public virtual event IActiveXObject_MyMethodEventHandler SettleComplete.
There is als...
What do sender and eventArgs mean/refer to? How can I make use of them (for the scenario below)?
Scenario:
I'm trying to build a custom control with a delete function, and I want to be able to delete the control that was clicked on a page that contains many of the same custom control.
...
Hi,
I am migrating from ASP.NET 1.1 and I used to subscribe to page events using designer which adds subscriptions to InitializeComponent method on the page.
In the ASP.NET 2.0, how can I subscribe to Page events from the designer?
Not using designer this seems to work.
protected void Page_Init(object sender, EventArgs e) {
/...
I have an ASP.NET GridView that's bound to an ObjectDataSource (which is bound to a MySQL database). On this grid, I have 2 unbound ButtonField columns that I want to trigger server-side events. Hence I have added an eventhandler method to the GridView's RowCommand event.
In the code of said eventhandler, I need to somehow get hold of t...
<div class="yui-gd">
<div class="yui-u first"><label for="${args.htmlid}-addContent">${msg("label.HowToAddContent")}:</label></div>
<div class="yui-u">
<select id="addContent" name="addContent" onchange="dropdown(this)">
<option value="1" selected="selected">${msg("label.ge...
I need to intercept ToolStrip Button click and cancel (break executing ButtonClick event).
All need to do from ToolStrip class level.
I've tried:
ToolStrip.ItemClicked( object sender, ToolStripItemClickedEventArgs e )
But [e] argument has no cancel property (only reference to ClickedItem), so I tried:
if (condition)
e.C...