Hi folks,
I'm trying to use JQuery to call some custom api via Ajax/$.getJSON . I'm trying to pass a custom value into the Ajax callback method, but that value is not getting passed through and is actually getting overwritten. This is my code:-
var locationType = 3;
var url = 'blah blah blah' + '&locationType=' + locationType;
$("#load...
Hi there
I have a function
function preloadImage() {
varLink=".... link to my picture..."
$("#picture").attr("src", varLink).one("load", function() {
// This is called after the image is loaded
}}
Now I call this function many times in my jquery script. But I need it to call different functions after the image is loaded. Is there ...
Here's the problem, I'm trying to do an automatic test to see if addToCart() works correctly.
addToCart();
if(Kiosk.GetCart().toString() !== emptyCartString){
setTestResults('addToCart', 'Passed');
}
else{
setTestResults('addToCart', 'Failed');
}
I'm adding a product to an empty cart, then I want to check to see if the cart is...
Hello,
I would like to know whether there is any way to check the validity of a boost call back function.
Issue is as follows
class A;
class B;
In class A's initialise function following is done.
boost::function < void(class B) > call_back;
using namespace boost::lambda;
call_back = bind(&A::callback_after_preparation, this, boos...
I need to get a regular snapshot from a webcam in Delphi. Speed is not a problem (once a second is fine). I have tried demo code from based on stuff from http://delphi.pjh2.de but I can't get it to work. It compiles and runs OK but the callback function never fires.
I don't have a real webcam but am running instead a simulator. The ...
Hi,
I'm using $('#container').load method to handle loading all the subpages of my site.
Now the deal is, some sub-pages require extra behavior (like form validation etc.)
I'd love them to be self-contained, so - each sub-page has own JS code that handles all the subpage-specific tasks. This however requires some of them to handle "load...
Hi, I'm trying to pass some parameter to a function used as callback, how can I do that?
function tryMe (param1, param2) {
alert (param1 + " and " + param2);
}
function callbackTester (callback, param1, param2) {
callback (param1, param2);
}
callbackTester (tryMe, "hello", "goodbye");
...
In the documentation there is a list of possible values that textStatus might be if the error() callback fires ("timeout", "error", "notmodified" and "parsererror") but nothing specified for the success() or complete() events.
Are there any other values besides "success" that could be passed to the success() callback? Is this documented...
I noticed that Flash allows you to insert cue's into a video file (flv). Is something like this possible on Android? I have a video that runs locally in my Android app and I would like to insert cues into the video which will give me callbacks when a certain portion of the video has been reached. If this is not possible, are there any...
Renewing the bounty AGAIN because I really need to know how to get this to work, or a definitive answer about why it won't.
I've added an alternative explanation of the problem here.
Having a hell of a time getting a two-way (IsOneWay = false) WCF client-server to work in .Net 3/3.5.
After the client successfully enrolls with the serv...
Hi,
It is usually said callbacks are implemented with function pointers. When I check PortAudio's source code, I see that callback function is declared as an ordinary function (not a f. pointer). Is it normal/legal/advisable?
typedef int PaStreamCallback(
const void *input, void *output,
unsigned long frameCount,
const PaStreamCallbackT...
Hi,
In PortAudio's C++ bindings, there is a MemFunCallBackStream constructior that can be called as:
portaudio::MemFunCallbackStream<MyClass> streamRecord(paramsRecord,
*AnInstanceOfMyClass,
&MyClass::MemberFunction);
where last...
Hello,
In the below method calls from a single object, how to make the handler method to run 1st and then the main method in Objective-C?
Does it run in Asynchonous or Synchronous way?
Main method :AuthenticateMobileServer
handler Method :Handler
[mobile_Obj authenticateMobileServer:self action:@selector(handler:)];
Thank You...
I am given some data in a callback function to write to disk sequentially, about 4KB every 0.02 seconds. If I fwrite() from the thread the callback function is in, I get some lag in other parts of code in same thread. So in order to not block this thread while writing to disk, I want to move the fwrite code to another thread. The problem...
I have a HTML table which I add items to from javascript on an ASP.NET callback when a button is clicked.
HTML:
<%@ Page Language="C#" CodeFile="Hello5.aspx.cs" Inherits="ClientCallback" %>
<html>
<head>
<script>
function AddResult()
{
GetResults("blah", "");
}
function UpdateTable(itemText)
{
var ...
How does jquery-ui knows to bind callbacks passed as init options? I'm thinking the answer is somewhere in the $.widget.bridge method (ln 71) but I'm not entirely sure what's going on there.
An example of what I'm talking about is something like the autocomplete search event. The code example shows that I can bind to 'search' with init ...
My ultimate goal is to list all active fonts on a windows computer. For example, if you start WordPad or Word, you will see them all. Some of these fonts comes from the windows\fonts folder, but not all. Some are registered dynamically using the gdi32.dll call AddFontResource(...). Now, you would think C# had support for retrieving this ...
I'm trying to create some kind of callback for a class template. The code is like this:
template <typename t>
class Foo {
void add(T *t) {
prinf('do some template stuff');
on_added(t);
}
void on_added(T *t) { }
}
struct aaa {}
class Bar : Foo<aaa> {
void on_added(aaa *object) {
printf("on added ...
I am getting a set of data from the database where the query produces a repetition of data with a different "Special" value. For example the user "A" can be repeated twice, having three different "Special" values under the "Special Column".
I am using a callback handler to retrieve the data and put it into a list, now additionally I wan...
Hello,
Im using ASPxPopUpControll in which I have ASPxCallBack panel. THis CallbackPanel was embeded there because I wanted to have solution based on callbacks despite of reloading page each time.
In this CallBackPanel I've embeded asp:Wizard control.
What I want to achive is get rid of postbacks after clicking next previous etc butt...