callback

Ajax jquery synchronous callback success

I have this function that makes an ajax call. I'm describing the problem in the last chunk of code comments. function doop(){ var that = this; var theold = "theold"; var thenew = "thenew"; $.ajax({ url: 'doop.php', type: 'POST', ...

C# Callback problems

Hi, i have a prioblem with a callback because my Form1 open Form2 and send data to Form2 after this return information to another form...please help i can send object from form1 to form2, but the result of the form2 method must be returned by callback to another form(example form 3). i hope that you understood my question.. ...

Cast between function pointers

Hello, I am currently implementing a timer/callback system using Don Clugston's fastdelegates. (see http://www.codeproject.com/KB/cpp/FastDelegate.aspx) Here is the starting code: struct TimerContext { }; void free_func( TimerContext* ) { } struct Foo { void member_func( TimerContext* ) { } }; Foo f; MulticastDelegate< ...

Modifying Containable fields required in beforeFind callback?

In my CakePHP 1.2.5 app, I have a Profile model that belongsTo a User model. The User model has a username field, and when performing a find() on the Profile model, I want to always automatically retrieve the value of User.username too. I figure it would make sense to modify my Profile model's beforeFind() method to automatically conta...

Make a new asynchronous call inside a callback function

I would like to use the Google AJAX Feed API to fetch multiple newsfeeds and display them on a webpage. I can't use Google's FeedControl class because I want to control the way the items of the feed are displayed. That leaves me with Google's Feed class as the only option. I've got it to work with a single feed: provide a url and a c...

Can I use a static (i.e., predetermined) callback function name when requesting JSONP with jQuery?

The jQuery documentation lists the following example of using $.getJSON to request JSONP: $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&amp;tagmode=any&amp;format=json&amp;jsoncallback=?", function(data) { $.each(data.items, function(i,item) { $("<img/>").attr("src", item.media.m).appendTo("#imag...

Binding multiple handlers to elements

Hey, I'm new to JavaScript so this is most probably going to sound really basic but here goes. My web page is made up of "modules" which I load into the page with jQuery, so that my JavaScript works with the new content that has been loaded into the page, I have been told to use callback functions. My problem is though, how do I activa...

WCF Callbacks services

Hi, Just starting to look into WCF and came across the WSDualHttpBinding binding. I have used .Net remoting in the past, but it was not possible to have callbacks to occur when the client was behind a router. Callbacks only worked when 2 applications were running on a LAN. As explained by this article. http://blogs.msdn.com/manishg/a...

Jquery JSON Ajax Callback Not Working - Cakephp

I'm trying to write a simple JSON post and the callback alert does not show up no matter what I do. I used firebugs to see if the post was getting any response and "SHOE" returns. So why is the alert not working in the callback? view code: $('#GaragePartAddfrompartlistForm').click(function() { var item = "CHEESE"; $.post(...

jQuery Supersized Plugin callback when slideshow finishd

I am using the Supersized jQuery plugin which makes images fullscreen and also implements a slideshow. Currently, this plugin does not have a callback for when the slideshow is finished, rather, it just continually repeats. Is there a way that I could trigger a function after the last slide is shown? Currently, I have it working to tr...

Removing ASP.NET validators for controls that are no longer on the page.

I have a page that loads different controls into a placeholder via a ComponentArt Callback based on the user's action (clicking a link). I am running to this scenario: Action 1 loads a control with ASP.NET validators into the placeholder. Action 2 loads a different control with no validators (the first control is replaced and no longe...

Use Ajax() function in Jquery to load PART of an external page into div

I'm trying to load a DIV element from an external page into my current page using the Ajax/jQuery.ajax function. While I have successfully been able to load an entire external page, I can't seem to load just the DIV element. Here's my code: $("a").click(function() { /* grabs URL from HREF attribute then adds an */ /* ID from the ...

Compiling GTK+ Application with G++ compiler.

I am writing an application in C++ with using GTK+ (not gtkmm) so I need to compile using g++ compiler. Is it possible to compile GTK+ applications with the g++ compiler? Are GTK+ and libraries compatible with g++ compiler? I am trying to embed GTK+ functions call in a class like follows: #include <gtk/gtk.h> class LoginWindow { pu...

JavaScript Function callback and events...

I was trying to make a javascript gallery script by my own. When i have done with it i was pretty happy, until i noticed, that it doesn't work in IE6. In FireFox everything looks fine. So i started debugging. I noticed, that setAttribute is one of the problems for sure. Maybe even the biggest. So after viewing an interetsing article abo...

Invoke C dll functions,structs and callbacks in C#

Below is the header file.can anyone please give a idea to call the callback function below. //Function Prototype int PASCAL EXPORT RegisterCallbackFunctions (TCallbacks CallbackFuncs); //Data Structure struct TCallbacks { LPONUSSDREQUEST m_pOnRequest; LPONUSSDRESPONSE m_pOnResponse; }; struct TData { DWORD m_dwCmd; BYTE ...

Is the callback function in SDL_Audio_Spec called SDLAudio_Spec.freq times a second?

Is the callback function in SDL_Audio_Spec called SDLAudio_Spec.freq times a second? ...

play a waveform at a certain frequency in SDL callback function

I have a waveform 64 samples long. If the sampling rate is 44100 hz, how can I play(loop) this waveform so that it plays arbitrary frequencies? frequency = samplerate / waveform duration in samples Therefore the frequency should be 689hz(44100/64). If I wanted it to be say, 65.41hz(C-2), I would have to do this: 65.41 = 44100 / x Sol...

TreeView control - Is it possible to collapse w/o a postback?

Everything i found online so far is very confusing about TreeView. I know it has a built-in callback, that developer can populate nodes from server on demand, etc etc. I understand the populate node on demand - nodes populated from the server on demand (expand) works with the callback - and doesn't refresh the whole page - but it still ...

how to insert into multiple tables in rails

Hi all, i am trying to insert into multiple tables using rails.. i have a table called users and services. when i create a user the user details should go into users and a service name and userid should go into services table. Any help would be greatly appriciated. Thanks. ...

addClass using .live() with jQuery

I am currently using the .load() function to load content into a container div dynamically. The content being loaded is table data which I'd like to zebra stripe. The zebra striping is easy on a static page, but I can't figure out how to zebra stripe the new content loaded into the container div. Here's the code with which I'm trying ...