handler

Moving a custom configuration group to a separate file

I've recently wrote a rather large custom configuration group. I'm curious if it is possible to move this configuration to a separate file via the following: <configuration> <configSections> <sectionGroup name="MyCustomGroup"> <section name="MyCustomSection"/> </sectionGroup> </configSections> <MyCustomGroup ...

Event Sender Gets Disposed In Client's Event Handler Code

Hello, I'm facing the following situation (C#/.Net here, but I think it's a general problem): Some of our object types (which are collections) are disposable types (IDisposable in C#, which allows clients to explicitly tell an object 'you are not needed anymore, free all of your resources') These collections fire events ('oh my, look,...

.ashx ASP.NET Handler Image not displayed in html img-element

Hi, I have a strange problem. I created an ASP.NET Handler (AccidentMap.ashx) that gets a bitmap and returns it. Here is the handler: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Drawing; namespace BackOffice.Modules.Insurance_Company { /// <summary>...

What is Skype's URL handler for making calls in iPhone?

Hi Does anyone know what URL scheme Skype supports for making calls from other apps (that should launch Skype and place the call). Thanks ...

JavaScript Regex to return the last digits and ASP.Net event Handler?

Given the following string: 's0\\8\\26\\29\\30\\32' or 's0\\8\\26\\' or 's0\\5', I need to return the last digits of the string. Given: function getFolderID(mystr) { var reFolderID = /\bs0\\\\[0-9]+\b/g //regexp to return s0\\34 var retArr = []; var retval = ''; retArr = mystr.match(reFolderID); ...

IIS: Abort handler work on client connection close

I have a handler that do some hard work under images. It's look like http://example.com/webservice.ashx?imageparam1=100&amp;imageparam2=200 Each request to this handler take about 2-3 seconds. I need a way to abort image generation if client close connection(i.e. close page or send request for another image). Is there is a way to do ...

How to add a click handler to a WPF Button in C++/CLR?

Hi ! In C#, I can do (*): Button b = new Button(); b.Click += ButtonOnClick; : void ButtonOnClick(object sender, RoutedEventArgs e) { // do something } But in C++/CLI I can't do: Button ^ b = gcnew Button(); b->Click += ButtonOnClick; : void ButtonOnClick(Object ^ sender, RoutedEventAr...

non-reentrant function in signal handler?

Hi guys, consider a signal handler that call exit() as last instruction: is safe to call non-reentrant functions (e.g. free()) in that handler? IMHO it would be legal due to the fact that the handler does not return to the normal sequence of execution. Thank you in advance. ...

jQuery / javascript question, is a click handler executed asyncronously?

if I have $("a#foo").click(); $("a#bar").click(); dostuff(); and both have click handlers attached which do different things..is it guaranteed that bar's click handler will only execute after foo's completes? or are they dispatched asyncronously similarly..will dostuff() only execute after foo and bar's click handlers complete? ...

Android - AsyncTask and error handling

I'm converting my code from using Handler to AsyncTask. The latter is great at what is does - async updates and handling of results in the main UI thread. What's unclear to me is how to handle exceptions if something goes haywire in AsyncTask#doInBackground? The way I do it is to leave error Handler and send message to it. It works fine ...

JAX-RPC GenericHandler fails on Websphere Application Server v6.0.2.35

I've created an Extension of GenericHandler called SOAPHeaderHandler. I placed log4j statements in the handler and can see the constructor being built. When I generate a SOAP message, however, I don't see the message related to the handleRequest method. I've registered the Handler in the stub as follows: if (service == null)...

Do TomTom or Navigon apps register a URL Handler on the iPhone?

I'd like to use routing from my app, so that TomTom or Navigon get opened with right "from" and "to" addresses. Does anybody know if TomTom or Navigon apps register a URL Handler on the iPhone? ...

SA_ONESHOT conflict in signal handling (LINUX)

Does the treatment of SA_ONESHOT in sys_signal() and get_signal_to_deliver() lead to a conflict ? ...

IOException when making HttpWebRequest to local ASHX file

Greetings, all. Here is my situation. I am attempting to make an HttpWebRequest to a local handler file and I keep getting the following exception: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Now, I'm using a local handler file because I am writing some integration...

jQuery ajaxError() handler fires if user leaves page before page finishes loading

We use jQuery's global ajaxError() handler to alert the user of any AJAX failures: $(document).ajaxError(function() { $("There was a network or server error. Please try again later.").dialog({ title: "Error", modal: true, resizable: false, buttons: { 'Ok': function() { (this).dialog("close")...

python http handler

I want something like BaseHTTPRequestHandler, except that I don't want it to bind to any sockets; I want to handle the raw HTTP data to and from it myself. Is there a good way that I can do this in Python? To Clarify, I want a class that receives raw TCP data from Python (NOT a socket), processes it and returns TCP data as a response (...

If an onfocus event handler is added with attachEvent, how can I access it?

Background: I'm writing a script (in VBA, if that matters) to input data into a web-based system. Some of the system's validation is only run when a field is focused, so I've been calling .Focus on the fields in VBA to force it to run. But that steals the systemwide focus; rather annoying if I am doing anything else while the job is run...

HttpContext.Current.CurrentHandler is NULL in ReleaseRequestState eventHandler

I have a module with custom ReleaseRequestState eventHandler. In this eventHandler i use HttpContext.Current.CurrentHandler, and just now revealed that in some situations (particularly - for *.css files) it can be NULL. How this can be, and how it can be correctly workarounded? ...

How to delete delayed messages before they arrive at a Handler?

My Problem is that I need to send messages with a delay of 1 second. The handler then initiates some action, you're getting the picture. There are nevertheless some conditions in which the already sent message should be deleted ( before the second elapsed ) to prevent the handler from doing anything. I couldn't figure out how to do thi...

JAVAX-XML-WS Handler

I got this example code from a website, can I get the parameter input value and response return value from handleMessage also? in this example i can only get the method name. (Method being called) public boolean handleMessage(SOAPMessageContext context) { // get the SOAPMessageContext SOAPMessageContext sctx = (SOAPMessageConte...