Hi!
Imagine we have to sources to be requested by ajax. I want to perform some actions when all callbacks are triggered. How this can be done besides this approach:
(function($){
var sources = ['http://source1.com', 'http://source2.com'],
guard = 0,
someHandler = function() {
if (guard != sources.length) { return; }
//d...
I have a JavaScript class that has a method:
function someClass() {
this.someMethod = someClass_someMethod;
}
function someClass_someMethod() {
// make an AJAX request
}
The problem is that someClass_someMethod() needs to return the value of the AJAX request.
I'm using jQuery's $.getJSON() method to fetch the data. The data ...
Hi,
I know that this is probably a simple problem but I am new to Matlab GUI's and basically want to get the old value which used to be stored in the text box to replace the value which has just been entered. E.g.
Text box contains a valid string,
User enters invalid string,
Callback func, validates input and realises new input is an ...
Hi guys,
I'm trying to get Twitter authentication working on my ASP.NET site. When you create the app on the Twitter website, you have to specify a callback URL, which for sake of argument, I have set to http://mydomain.com
I've read the oAuth 1.0a spec, and to override this callback URL with your own custom one you have to send the oa...
I've been reading about Webhooks and I'm trying to determine if it's a specification vs a style/pattern.
By "specification" I mean that the implementation details, e.g. headers, payload and so on are well defined. By "style" or "pattern" I mean in the sense that REST is a style (as opposed to a spec) or a pattern which describes usage ...
I need to write code to do some realtime processing that is fairly computationally complex. I would like to create some Python classes to manage all my scripting, and leave the intensive parts of the algorithm coded in C++ so that they can run as fast as possible. I would like to instantiate the objects in Python, and have the C++ algor...
A User can add a Sentence directly on my website, via Twitter or email. To add a sentence they must have a minimum score. If they don't have the minimum score they can't post the sentence and a warning message is either flashed on the website, sent back to them via Twitter or email.
So I'm wondering how best to code this check. Im thin...
Hi,
I was wondering if it's possible to call specific methods defined within the AsynTask class from another class and/or service ?
In my specific case I have a Service playing some sounds, but the sound is selected from a List with available sounds...
When a sounds is selected it is downloaded from my home server, this takes some time...
In my solution there's a few WCF services, each of them implementing it's own callback interface. Let's say they are called: Subscribe1, with ISubscribe1 and ICallback1, etc.
It happens there are a few methods shared among ICallbacks, so I made a following interface:
interface ICallback
{
[OperationContract]
void CommonlyUsedMe...
I am using google maps api v3 and have an array of arrays object:
MVCArray.<MVCArray.<LatLng>>
I want to iterate over this. I see that MVCArray has a method forEach which uses a call back, but I have no idea how to use this (I haven't done much js). The api defines this method as follows:
forEach(callback:function(*, number)))
C...
Hi!
I am wondering if the twitter API supports the following:
Whenever I make a post to my twitter account - it also calls a specific URL which I define so I can do something else?
Thanks very much,
Andy
...
Hello.
I am thinking about elegant way to encapsulate WinAPI callbacks inside a class. Suppose I am making a class handling asynchronous I/O. All Windows callbacks should be stdcall functions, not class methods (I need to pass their addresses to ReadFileEx WinAPI function for example). So, I cannot just pass method addresses as a callba...
I am creating a program which requires me to change a setting in the program when the video reaches specific points (at 1/3 of the video's completion, 2/3's and on completion). Android has a built in callback method for completion so performing an action at that point in time is not difficult. However, I don't know how to go about checki...
I want to loop through an object that contains functions which will execute one after another. My most ideal approach would be to have these chain somehow (ie. func2 waits for func1 and func3 waits for func2) but this needs to happen dynamically and the functions will all have different durations.
I'm using jQuery so I thought that per...
I have selected "Processing orders automatically" on Google Checkout and it credited the amount automatically. But it takes few minutes (sometimes upto 15 minutes) to get response on the Call Back URL (notification url) from Google regarding the success state.
So the user need to wait upto this time to get autorization and is very bad....
Hey guys.
I am writing an App using JTwitter however I need to authenticate in order to not have the 150 requests per minute on the public api.
Jtwitter seems to support OAuth however I have some questions.
My app will be running behind a company firewall - so the URL wont be accessible outside of the company's network - will callback...
Is there a simple explanation on MSDN of WebForm_DoCallback function?
All I can find is this article http://msdn.microsoft.com/en-us/magazine/cc163878.aspx
which does include implementation of WebForm_DoCallback but doesn't do a good job explaining parameters themselves.
function WebForm_DoCallback(eventTarget, eventArgument,
eventCa...
Hello all,
I'm trying to work with youtube's javascript api and am having a problem initializing it/getting a callback when it's ready. Api documentation can be found here.
I'm getting the videos from the json provided by youtube and embedding them like this:
//insert flash object in video element
$(video_elm_arr[i]).ap...
I have an ajax-enabled WCF service that returns a set of JSON objects back to the browser. The service has a simple function that calls a business layer dll. This then returns the objects to the calling method.
Below is the service implementation (minus the Imports statements):
<ServiceContract(Namespace:="")> _
<AspNetCompatibilityR...
Probably I missed something, but lets say I have this:
$('a.delete').click(function(){
resp=window.confirm("Are you sure you want to delete this?");
if(resp)
return true;
else
return false;
}
Now, I want to save that callback function into a separate js file, because I will use it in several pages. My logic told...