Is there a way in javascript to detect all images in a document, including those that may be loaded asynchronously (and maybe after the DOM is ready)?
I'm looking to create a function that can detect if Google Analytics has been loaded by searching through the DOM looking for "__utm.gif". document.images doesn't seem to hold this image...
Hello,
I got a portion of the website that calls out to a web service and some other external requests and I decided to turn this into asynchronous model (to free up threads so they can process other requests) and everything is working fine, everything executes but...
When everything completes I am calling a modalpopup extender servers...
Hi. First of all, sorry about the title -- I couldn't figure out one that was short and clear enough.
Here's the issue: I have a list List<MyClass> list to which I always add newly-created instances of MyClass, like this: list.Add(new MyClass()). I don't add elements any other way.
However, then I iterate over the list with foreach and...
I have a Python-driven web interface powered by Apache 2.2 with mod_python and Python 2.4. I need to make an asynchronous process appear synchronous to users of this web interface.
When users access one module on this website:
An external SOAP interface will be contacted with a unique identifier and will respond with a number N
The e...
On Windows I've started a program "async.cmd" with a ProcessBuilder like this:
ProcessBuilder processBuilder = new ProcessBuilder( "async.cmd" );
processBuilder.redirectErrorStream( true );
processBuilder.start();
Then I read the output of the process in a separate thread like this:
byte[] buffer = new byte[ 8192 ];
while( !interrupt...
I have a modeled a set of objects that correspond with some real world
concepts.
TradeDrug, GenericDrug, TradePackage, DrugForm
Underlying the simple object model I am trying to provide is a complex
medical terminology that uses numeric codes to represent relationships
and concepts, all accessible via a REST service - I am trying to
h...
Hi folks,
I have been playing with other frameworks, such as NodeJS, lately.
I love the possibility to return a response, and still being able to do further operations.
e.g.
def view(request):
do_something()
return HttpResponse()
do_more_stuff() #not possible!!!
Maybe Django already offers a way to perform operations afte...
Hi,
I am trying to test the use-case of a customer having a proxy with login credentials, trying to use our webservice from our client.
If the request is synchronous, my job is easy. Catch the WebException, check for the 407 code, and prompt the user for the login credentials.
However, for async requests, I seem to be running into a p...
In order not to block the reactor I would like to read files asynchronously, but I've found no obvious way of doing it using EventMachine. I've tried a few different approaches, but none of them feels right:
Just read the file, it'll block the reactor, but what the hell, it's not that slow (unless it's a big file, and then it definitel...
I want to make a form that will use jquery to submit a list of keyword to a php file, this file could take a lot of time to load depending on the size of the keywords list.
What I want to do is to load the php response into a div or container in real time without using iframes.
All the ajax request I know have to wait until the request...
I am asking because if it is not, it can be abused as synchronizations mechanism. I am asking about Java.
...
I'm in the middle of a Silverlight application and I have a function which needs to call a webservice and using the result complete the rest of the function.
My issue is that I would have normally done a synchronous web service call got the result and using that carried on with the function. As Silverlight doesn't support synchronous w...
I have a C# application using a C++ DLL. The C++ DLL is extremely simple. I can call one method, and it has a callback method. The callback method must finish before I can process the next item.
The problem is, I can only process one command at a time, but I want to process them as fast as possible.
Fake/simplified code interface for c...
Is it possible to set async:false to $.getJSON call.... Any suggestion....
...
What is the best way to accept new sockets in async way.
First way:
while (!abort && listener.Server.IsBound)
{
acceptedSocketEvent.Reset();
listener.BeginAcceptSocket(AcceptConnection, null);
bool signaled = false;
do
{
signaled = acceptedSocketEvent.WaitOne(1000, false);
} while (!signaled && !abort && l...
I have a WPF application with a group of asynchronous WCF service calls all mashed into the code behind, complete with event handlers and everything, that I have to refactor to productionize and maintain.
I want to separate concerns here for maintainability and all the other good reasons to do this, but I'm not sure exactly how to achie...
So, I have a page that loads and through jquery.get makes several requests to populate drop downs with their values.
$(function() {
LoadCategories($('#Category'));
LoadPositions($('#Position'));
LoadDepartments($('#Department'));
LoadContact();
};
It then calls LoadContact(); Which does another call, and when it retur...
I have been messing around Boost Asio for some days now but I got stuck with this weird behavior. Please let me explain.
Computer A is sending continuos udp packets every 500 ms to computer B, computer B desires to read A's packets with it own velocity but only wants A's last packet, obviously the most updated one.
It has come to my at...
I have example project StockWatcher using requestbuilder to communicate with servlet (this example). I want to make servlet asynchronous. I have added the following lines to the doGet method:
final AsyncContext ac = request.startAsync();
ac.setTimeout(1 * 60 * 1000);
ac.addListener(new AsyncListener() {
@Override
public void on...
Hi, I noticed that there seems to be a couple of slightly different syntaxes for loading js files asynchronously, and I was wondering if there's any difference between the two, or if they both pretty much function the same. I'm guessing they work the same, but just wanted to make sure one method isn't better than the other for some reaso...