tags:

views:

25

answers:

1

I am not sure why I get the js error

ResponseText is not defined

in my callback function()

        $("#orderListContainer").load("OrderHandler.ashx?action=" + action, function(responseText, textStatus, XMLHttpRequest)
        {
            alert(ResponseText);
        });
+5  A: 

this:

alert(ResponseText);

should be:

alert(responseText);

Note the lowercase r, as that is the way you named your parameter.

patrick dw
Explanation: JavaScript is case-sensitive.
MvanGeest
ok, I need to go home.
CoffeeAddict
@coffee - Nah, just brew up the strong stuff. ;o)
patrick dw
That reminds me, I have coffee grinds sitting in the other room, totally forgot!
CoffeeAddict