events

Memory leak during object construction in .NET

http://www.devx.com/tips/Tip/5573 The above post states that there will not be memory leak during object construction. How about the code below? Will this cause any memory leaks? I see that the memory usage for the sample application increases slowly (in task manager) even after forcing the GC collection. namespace WindowsFormsApplica...

silverlight event on server or client

Hi, I have read that silverlight application will be downloaded as a XAP file on the browser and then the plug-in on the client machine will take care of executing it( pls correct me if I am wrong). If this is the case, suppose lets say my application has a button, and I have a click event on it. Now, If I clicks that button, will the e...

Get checkbox checked event in gridview

I have a gridview with one column of checkboxes and other columns with different custom controls . What I want is that when a checkbox is checked an event is triggered which toggles the visibility of other elements in the row . ...

assigning click event to div but not anchor within it

A jquery question. I have a div that contains text and an anchor tag. I want to assign a click event to the div tag and its content EXCLUDING the anchor tag. So when I click on the div, an alert window pops up. But if I click the anchor (thats within the div), the alert should not occur. The div would be something like this: <div id...

JQuery AJAX Event Problem

Hi, I am having trouble fixing a bug in an existing ASP.NET MVC web site. One of the views has a series of text boxes where the user enters data. Each text box has some javascript attached to the blur event in order to post back to the server when the text is changed. More specifically the code is using the JQuery $.ajax method to make ...

jQuery build table with events

I've just start playing about with jQuery and want to place the results of a ajax call into a table ... I've written the following function (for test not actual) function AjaxSucceeded(result) { $("#pageLabel").html(''); $("#pageLabel").append($("<table>").attr("id", "outputTable").append($('<tbody>'))); ...

c# Interrupt an executing Key event from a TextBox at the next key event

Hi All, I am using the input from a TextBox to filter information displayed in a ListBox. I want the filtering to occur each time a key is pressed. The problem I am faced with is that if the user types a second, third etc. character, the filter will carry on through for each of the key presses. E.g. The user types 'a' and the filtering...

insert to a diffrent table onNewRecord

got an ADOQuery that has OnNewRecord event. on the procedure i try to add data automaticaly to another table. the data is a few rows that are needed and handled in clientDataSet in case of cancellation. at the loc OtherAdoQuery.insert; i get error that ADOQuery failed to insert null into a non null field. i am in insert mode, howev...

jQuery - change events on click, then revert to original events on second click?

HI al I'm trying to allow a kind of 'toggle' state on a bunch of image elements, whereby they have a rollover, an onclick image change and List item an ID change when clicked. That much I can do, but I can't get them to revert when they are clicked a second time (i.e. returning to the original image, with the rollover re-instate...

Ask user before closing C# WPF application

Hello. I want to ask user before closing application. I's C#.NET 4.0 application. I'm using WPF. I can do it in windows forms, but not in WPF. Event is fired when user want to close app, message Box appears, bun no matter which button is pressed(Yes or No) application always closes. Why? Where is mistake? It works, but only when user pr...

Javascript - Prototype: Event.observe on a form is not working for IE

I have this JS which gets a XML response from a service, its a True or a False, well the script should catch the submit and get the response from the service. The problem is that I see that its not working because when I do the submit, I see the XML response on IE (6/7/8), when the script should have catched it and validated the XML resp...

Google Event Tracking on <p> clicks

I am looking to implement Google Event Tracking on a new website and couldn't find any documentation on this, but basically I just need to confirm that I add the standard 'onClick="_gaq.push([...' to a paragraph tag (which I have a jQuery event on already), the event tracking will still function as it would on an ...

WPF set attached event programatically

Can someone explain how you do this programatically in WPF? <window Validation.Error="ItemError"></Window> I am trying to set the attached event for Validation.Error through code, but cannot quite figure out how to do it. ...

Passing delegate as method parameter

Hello, I'm currently developing an EventManager class to ensure that no events are left wired to dead WCF duplex clients, and also to control prevent multiple wiring from the same client to the one event. Now basically, I'm what stuck with is trying to pass the event delegate to a function that will control the assignment like this. va...

Any way to clear all WithEvents fields via one command?

The vb.net "WithEvents" syntax is very useful, but if a WithEvents field which references a long-lived object is not nulled out, it will often constitute a memory leak. Is there any easy way for a Dispose routine to have vb.net automatically clear out all WithEvents fields and unsubscribe them? I've figured out a nice way to wrap the c...

invocation of polymorphic like event

Considering the code below: public class TableMain { public virtual event Action UpdateFilter; .... } public class TableSub : TableMain { public override event Action UpdateFilter; public void UpdateQuery(){ ..... if(UpdateFilter!=null){ UpdateFilter(); // Invocation of polymorphic field-like event??? } } ...

Silverlight schedule an event at a specific time

I'm trying to find a way to trigger a Silverlight event to occur at a specific time of the day. The app will be run out of browser and will be running all the time. I have found some methods that use a timer to fire an event every minute and then check if it is the correct time to do something, but that sounds messy. Is there some way ...

Objective-C : Call a method from another class in addTarget:action:forControlEvents

Hi everyone, Here is my problem : I want to assign an Event on an UIButton. I use this method : - (void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents like this : [newsButton addTarget:self action:@selector(myEvent2) forControlEvents:UIControlEventTouchUpInside]; newsButton is my UIButton...

Fb.ui only shows up after second click.

Hi, I am creating a Facebook application which should allow the user do post something on his/her wall. The main actions take place within a Flash movie. When the user is finished the Flash movie uses ExternalConnection to notify the JavaScript. The JavaScript now display a link, that has been hidden all the time and attach a onClick ev...

Suggestion for FullCalendar event removal UI

I have my fullCalendar functioning well, however, I need to allow the users to remove events from the calendar. I can use the clickEvent method to bring up a confirmation widow with a "do you want to remove" message. But this seems kind of clunky. Is there a better UI way of removing events? ...