synchronous

How can I keep the browser from locking up (or show wait symbol) when making a synchronous request with jQuery?

A function uses the jquery.ajax() method to get data from server and use it as return value. If I use async=true the function returns prematurely empty value. If I use async=false the wait for the function is too long. I tried toggle div showing spinning clock right before the request, but the div does not appear until the request is ove...

node.js: readSync from stdin?

Is it possible to synchronously read from stdin in node.js? Because I'm writing a brainfuck to JavaScript compiler in JavaScript (just for fun). Brainfuck supports a read operation which needs to be implemented synchronously. I tried this: const fs = require('fs'); var c = fs.readSync(0,1,null,'utf-8'); console.log('character: '+c+' ('...

Synchonous SSL certificate handling on iPhone

Hi, I was wondering if anyone can help me understand how to add SSL certificate handling to synchronous connections to a https service. I know how to do this with asynchronous connections but not synchronous. NSString *URLpath = @"https://mydomain.com/"; NSURL *myURL = [[NSURL alloc] initWithString:URLpath]; N...

On clicking the button to changed the view / Is need to use synchronous method in iPhone?

Hi friends, I have created scroll view and set the buttons in the scroll view. The buttons are scrolling horizontally. I created table view as subview for view controller. On clicking the buttons, the datas are displaying in the table view from RSS feeds using XML Parsing. SO changing the datas in the table view which depends the button...

Sychronous web service calls in Flex

Does adobe flex supports sychronous web service calls .... justify your answer??? ...

How to make synchronous URL requests from actionscript?

I have a big loop in actionscript that sends lots of data to an url: for(var i=0;i<1000;i++) { var request:URLRequest = new URLRequest(); request.url = url; request.method = URLRequestMethod.POST; request.data = data; var loader:URLLoader = new URLLoader(); loader.load(request); } The problem is because URLLo...

check if sendsynchronousrequest was successful

hi all i just wanted to know if this is the right way to check if a sendsynchronousrequest was successful: NSData* returnData = [NSURLConnection sendSynchronousRequest:req returningResponse:nil error:nil]; if(returnData == nil) { //code showing an alertView for example } else { //do somthing else } thanks in advance for your ...

jquery - submit post synchronously (not ajax)

I have a page (page 1) that accepts post requests, does some stuff and displays some data at the end. From another page (page 2), I want to redirect to page 1 when a button is clicked, of course sending all relevant data required by page 1 via POST. I can, of course, use the old hack of having an invisible form on the page, stuffing i...

AJAX synchronous (SJAX) on session restore

I have a large web page (classic ASP) with lots of information required from the user, so lots of inputs. The user's behavior is that he will fill in the information over time, analyze it and other time consuming processes before submitting. The problem is that even though the session timeout is set to a reasonable 30 minutes, often i ge...

MySQL and PHP synchronicity sanity check

I'm troubleshooting a bug and trying to rule out all possible explanations for why I'm witnessing the behavior that I am. I'm executing a number of MySQL queries in PHP (via CodeIgniter's Active Record class) and one explanation for the behavior that I'm seeing is that the queries aren't being executed synchronously, i.e. that PHP isn't...

Mixing synchronous and asynchronous socket calls.

Is it considered bad practice to combine synchronous and asynchronous socket calls on the same server? For example (modified from the msdn): // Initalize everything up here while (true) { // Set the event to nonsignaled state. allDone.Reset(); //allDone is a manual reset event // Start an asynchronous socket to listen ...