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',
...
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..
...
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< ...
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...
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...
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&tagmode=any&format=json&jsoncallback=?",
function(data) {
$.each(data.items, function(i,item) {
$("<img/>").attr("src", item.media.m).appendTo("#imag...
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...
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...
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(...
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...
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...
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 ...
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...
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...
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?
...
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...
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 ...
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.
...
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 ...