I posted this to the jQuery en list but think it might be relevant to
the devs as well. And I would appreciate any insight that the
development community has.

FireBug is reporting this error.
jquery.js (line 3633)
object is undefined
[Break on this error] var name, i = 0, length = object.length;\n

I am using jQuery 1.3.2

Here is my code.

var that=this;
jQuery.ajax({
       type : "POST",
       dataType : "json",
       url : "js/tsbtw-object.js",
       success : function(data, statusText){

               var verbArray = data.verbs;
               var adjArray = data.adjectives;
               var subjArray = data.subjects;

               for(var i = 0; i<verbArray.length; i++){

                       var verbTime = Math.floor(Math.random()*1000);

                       jQuery("#verb-content").fadeOut(verbTime,
function(){
                               jQuery(that).text(verbArray[i]).fadeIn
(verbTime);
                       });
               }
               for(var j = 0; j<adjArray.length; j++){

                       var adjTime = Math.floor(Math.random()*2000);

                       jQuery("#adj-content").fadeOut(adjTime, function
(){
                               jQuery(that).text(adjArray[j]).fadeIn
(adjTime);
                       });
               }
               for(var k = 0; k<subjArray.length; k++){

                       var subjTime = Math.floor(Math.random()*3000);

                       jQuery("#subj-content").fadeOut(subjTime,
function(){
                               jQuery(that).text(subjArray[k]).fadeIn
(subjTime);
                       });
               }
       },
       error: function (xhr, ajaxOptions, thrownError){
               alert(xhr.statusText);
               alert(thrownError);
   }
});

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to