pendingCallbacks[..]async java script error - Cleint Callback

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
Season Greetings,

I'm trying to implement client call backs in my page. i'm using user
controls (composite controls) and these are placed in my master page.

I'm implementing ICallbackEventHandler and ICallbackContainer interfaces in
my user control class to generate the callback, and i palced the respective
javascript function in master page to receive results, and populated to a asp
list box (typically i've to populate a list box on selection of a tree node
in a tree view control)

It is populating the list box however, after populating it is giving a
javascript error ("
_PendingCallbacks[...].async is null or not an object". i'm
generating/triggering only one callback(not multiple), Any clues how to
resolve this issue?

Also, while posting back this form i'm getting "invalid postback or callback
error" for the time being i've disabled the page "enableEventValidation" ,
any one solved this without disabling the validation?
 
Hi Anand,

Don't know about the invalid callback error. But there is a bug in the
javascript that the framework pumps out to deal with callbacks - two of the
javascript functions have unscoped variables used as for-loop indexers.
They are both named i. You can greatly reduce your chances of getting the
PendingCallbacks error by checking all of your own javascript for any
variables named i, and changing them to something else (or scoping them as
local variables by using the var keyword).

S
 
Hi Sosh,
thanks for the suggestions, BTW i'm not using any variable with name "i".


"Sosh" ने लिखा:
Hi Anand,

Don't know about the invalid callback error. But there is a bug in the
javascript that the framework pumps out to deal with callbacks - two of the
javascript functions have unscoped variables used as for-loop indexers.
They are both named i. You can greatly reduce your chances of getting the
PendingCallbacks error by checking all of your own javascript for any
variables named i, and changing them to something else (or scoping them as
local variables by using the var keyword).

S

Anand said:
Hi
Season Greetings,

I'm trying to implement client call backs in my page. i'm using user
controls (composite controls) and these are placed in my master page.

I'm implementing ICallbackEventHandler and ICallbackContainer interfaces
in
my user control class to generate the callback, and i palced the
respective
javascript function in master page to receive results, and populated to a
asp
list box (typically i've to populate a list box on selection of a tree
node
in a tree view control)

It is populating the list box however, after populating it is giving a
javascript error ("
_PendingCallbacks[...].async is null or not an object". i'm
generating/triggering only one callback(not multiple), Any clues how to
resolve this issue?

Also, while posting back this form i'm getting "invalid postback or
callback
error" for the time being i've disabled the page "enableEventValidation" ,
any one solved this without disabling the validation?
 
OP: I had the exact same problem and Sosh's suggestion was the fix (Thanks, Sosh!). I had just started to look through the autogenerated javascript when I googled this thread. You may want to look through your client script for something similar, regardless of variable name.

Just wanted to say thanks, and I should learn to scope better.
 
Back
Top