I have noticed that some of my ajax-heavy sites (ones I visit, not ones I have built), have certain auto-refresh features. For example, in GMail, if I get a new message, I see the new message without a page reload. It's the same with the Facebook browser-based IM client. From what I can tell, there aren't any java applets handling the se...
Hey, I'm doing sockets programming. Pretty much new to it.
The application is a Windows Service, in its ServiceMain() function I call CAsyncSocket's Listen() method, to listen for client connections. But after it starts listening for connections, it'll return and the ServiceMain() function will return and the service is stopped.
What I...
Let's say I have an exposed interface as such:
interface IMyService
{
MyResult MyOperation();
}
This operation is synchronous and returns a value.
My implemented interface has to do the following:
Call an asynchronous method
Wait for event #1
Wait for event #2
This is due to a 3rd party COM object I am working with.
This co...
I understand that it isn't possible/sensible to use threads in RubyCocoa. However it is possible to use asynchronous Cocoa methods to avoid blocking user interface events.
I've successfully used a method on NSURLConnection to send an HTTP request and receive the response without blocking the user interface. But I'm wondering what other ...
I've got an asp.net web page that is making 7 async requests to a WCF service on another service. Both boxes are clean with nothing else installed.
I've upped maxconnections in web.config to 20.
I run a single call through the system and the page returns in 800ms. The long is short of it is I think that the threadpool is being being ov...
I'm using ASMX web services in VB.Net in VS 2005. I am calling a function method on the web service that returns a true or false value. This works fine if I call the the web method synchronously, but if I want to call the method asynchronously, the function returns to a sub and there is no return value; therefore, I can't tell whether ...
I have to send many web service calls out to delete a bunch of records in Amazon SDB (unfortunately, rows can only be deleted one at at time currently).
I am using Amazon's SDB c# library which does not use async WebRequests.
Currently I use ThreadPool.QueueUserWorkItem to queue up a bunch of calls (I configured my connectionManagement...
I have a method that queues some work to be executed asynchronously. I'd like to return some sort of handle to the caller that can be polled, waited on, or used to fetch the return value from the operation, but I can't find a class or interface that's suitable for the task.
BackgroundWorker comes close, but it's geared to the case where...
Why do the Silerlight-generated WCF proxy class(es) offer only async calls?
There are cases where I don't really need the async pattern (for example in a BackgroundWorker)
EDIT : Sometimes I need to process the results of two WCF calls. It would have been much simpler if I could have waited (the business of the app allows that) for bot...
I have a GridView that is inside of an UpdatePanel. I am using the RowCommand event to insert data, but currently if an exception is thrown, it is not being written to the trace like I want. Is there a way I can output the exception message when using the asynchronous postback?
...
I am demoing bit of JavaScript in a WordPress blog post that randomly produces some content.
I'd like the user to be able to click a button and regenerate new random content via the script, and I'd like to do it asynchronously.
Does anyone have experience getting AJAX elements to work WITHIN WordPress blog posts? Or is there a simpler me...
This may be a dumb question - and the title may need to be improved... I think my requirement is pretty simple: I want to send a request for data from a client to a server program, and the server (not the client) should respond with something like "Received your request - working on it". The client then does other work. Then when the...
Is it possible to send mail asycronously using PHP while giving live user feedback on delivery?
I have recenty written a small app for our company's intranet for sending formatted emails to customers. The interface is quite clean and only requires the input of a job number, it then builds and sends the mail. The mail, while being built,...
I have a WPF application which presents a list of items. I would like to show an icon in UI if certain information exists on a web server for a given item (I need to download HTML web-page and verify its content to decide if the icon should be shown or not).
The number of items may be quite big (more than 100), so requesting a web serv...
Hi,
Context:
Imagine that you have a standard CherryPy hello word app:
def index(self):
return "Hello world!"
index.exposed = True
and you would like to do some post-processing, i.e. record request processing or just log the fact that we were called from specific IP. What you would do is probably:
def index(self):
sel...
The following code is working great in a normal console application:
private void button1_Click(object sender, EventArgs e)
{
Process process = new Process();
process.StartInfo.FileName = @"a.exe";
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardInput = true;
...
I have a task that is not important ; it should be run once in while if the website is used.
So I tried this approach : http://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/
The task could be long so I want it to be asynchronous... so that the navigation is not stopped by the background task.
The thing I don't unders...
I have a page with some UpdatePanels, each one with its own button to update it. Since the update routines can take some time, I thought making them Asynchronous would help loading the page step by step.
But doing so, when I fire programatically the update routine of each panel, I get only the last UpdatePanel updated.
Here is an examp...
I have a nice page that does everything I need. However one of the elements (a partial page) takes a few seconds longer then I'd like to load. So what I'd like to do is to show the page without this partial first but show a "loading" gif in its place. Then in my jquery...
$(document).ready(function() {
// Call controller/action (...
I am implementing slideshow. I have two options for paging between images:
1) to implement javascript page reload which definitely counts towards unique page view.
2) to implement ajax light box control which i am not sure is unique page view for each image.
I need more information for the second scenario.
...