I have been tracing this one down for two days.

Has anyone else ever seen jquery making multiple request for a single
call?

Here is the call:
                        $("#configure_blocks").load( 
"config_templates/"+config_template
+".html", { bust: new Date() }, function( data ){

                                var theform = 
document.getElementById("basic_properties");
                                theform.reset();

                        });


Here are the lines from my apache2 log:

10.0.1.12 - - [09/Feb/2009:11:41:21 -0800] "POST /config_templates/
led.html HTTP/1.1" 200 3035 "http://10.0.1.190/"; "Mozilla/5.0
(Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061712
Firefox/3.0"
10.0.1.12 - - [09/Feb/2009:11:41:21 -0800] "GET /config_templates/
led.html HTTP/1.1" 200 3035 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac
OS X 10.5; en-US; rv:1.9) Gecko/2008061712 Firefox/3.0"

This has been driving me mad as I can't get a handle on why this is
happening.

As well, is it ok to make a second ajax call in the completion block
of a previous ajax call?

                        $("#configure_blocks").load( 
"config_templates/"+config_template
+".html", { bust: new Date() }, function( data ){

                                var theform = 
document.getElementById("basic_properties");
                                theform.reset();

                                $.get("/cgi-bin/socket.cgi", { socket:'led', 
command:"off", plain:
1 }, function( json ){
                                        alert( dump( json );
                                }, json );
                        });


Thanks,
ml

Reply via email to