Cannot read property 'server' of undefined with SectionExpandable

Cannot read property 'server' of undefined with SectionExpandable

  

Hi, I'm using Silk, and when I use the component 'SectionExpandable' with refresh ajax, when the container refresh in the page I have the follow error:

Cannot read property 'server' of undefined

Can somebody help me?

Is this a bug of component?

Hi,

This is also happening to me. I can give you more insights on the error.

Google Chrome console error stack:

  • _osjs.js?9_1_501_0:5 TypeError: Cannot read property 'server' of undefined(…)OsLogException @ _osjs.js?9_1_501_0:5OsHandleException @ _osjs.js?9_1_501_0:5(anonymous function) @ VM2276:3(anonymous function) @ _osjs.js?9_1_501_0:18globalEval @ _osjs.js?9_1_501_0:18OsEvaluateUserJavaScript @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5(anonymous function) @ _osjs.js?9_1_501_0:5dequeue @ _osjs.js?9_1_501_0:18(anonymous function) @ _osjs.js?9_1_501_0:18each @ _osjs.js?9_1_501_0:18each @ _osjs.js?9_1_501_0:18queue @ _osjs.js?9_1_501_0:18OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsLoadNextScript @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsLoadNextScript @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsLoadNextScript @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5(anonymous function) @ _osjs.js?9_1_501_0:5dequeue @ _osjs.js?9_1_501_0:18(anonymous function) @ _osjs.js?9_1_501_0:18each @ _osjs.js?9_1_501_0:18each @ _osjs.js?9_1_501_0:18queue @ _osjs.js?9_1_501_0:18OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsLoadNextScript @ _osjs.js?9_1_501_0:5success @ _osjs.js?9_1_501_0:5l @ _osjs.js?9_1_501_0:18fireWith @ _osjs.js?9_1_501_0:18d @ _osjs.js?9_1_501_0:26d @ _osjs.js?9_1_501_0:26
    _osjs.js?9_1_501_0:5 TypeError: Cannot read property 'server' of undefined
        at HTMLDivElement.<anonymous> (SectionExpandable.pt.js?3268:98)
        at Function.each (_osjs.js?9_1_501_0:18)
        at $.each (_osjs.js?9_1_501_0:18)
        at Object.SectionExpandableObject.that.ajaxRefresh (SectionExpandable.pt.js?3268:89)
        at OsAjaxBackendXHR.OnAfterAjaxRequest (_osjs.js?9_1_501_0:65)
        at eval (eval at <anonymous> (_osjs.js?9_1_501_0:18), <anonymous>:2:15)
        at _osjs.js?9_1_501_0:18
        at Function.globalEval (_osjs.js?9_1_501_0:18)
        at OsEvaluateUserJavaScript (_osjs.js?9_1_501_0:5)
        at OsExecuteJSONUpdate (_osjs.js?9_1_501_0:5)OsLogException @ _osjs.js?9_1_501_0:5OsHandleException @ _osjs.js?9_1_501_0:5(anonymous function) @ VM2276:3(anonymous function) @ _osjs.js?9_1_501_0:18globalEval @ _osjs.js?9_1_501_0:18OsEvaluateUserJavaScript @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5(anonymous function) @ _osjs.js?9_1_501_0:5dequeue @ _osjs.js?9_1_501_0:18(anonymous function) @ _osjs.js?9_1_501_0:18each @ _osjs.js?9_1_501_0:18each @ _osjs.js?9_1_501_0:18queue @ _osjs.js?9_1_501_0:18OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsLoadNextScript @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsLoadNextScript @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsLoadNextScript @ _osjs.js?9_1_501_0:5OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsExecuteNextJSONUpdate @ _osjs.js?9_1_501_0:5(anonymous function) @ _osjs.js?9_1_501_0:5dequeue @ _osjs.js?9_1_501_0:18(anonymous function) @ _osjs.js?9_1_501_0:18each @ _osjs.js?9_1_501_0:18each @ _osjs.js?9_1_501_0:18queue @ _osjs.js?9_1_501_0:18OsExecuteJSONUpdate @ _osjs.js?9_1_501_0:5OsLoadNextScript @ _osjs.js?9_1_501_0:5success @ _osjs.js?9_1_501_0:5l @ _osjs.js?9_1_501_0:18fireWith @ _osjs.js?9_1_501_0:18d @ _osjs.js?9_1_501_0:26d @ _osjs.js?9_1_501_0:26
  • _osjs.js?9_1_501_0:5 TypeError: Cannot read property 'server' of undefined
        at HTMLDivElement.<anonymous> (SectionExpandable.pt.js?3268:98)
        at Function.each (_osjs.js?9_1_501_0:18)
        at $.each (_osjs.js?9_1_501_0:18)
        at Object.SectionExpandableObject.that.ajaxRefresh (SectionExpandable.pt.js?3268:89)
        at OsAjaxBackendXHR.OnAfterAjaxRequest (_osjs.js?9_1_501_0:65)
        at eval (eval at <anonymous> (_osjs.js?9_1_501_0:18), <anonymous>:2:15)
        at _osjs.js?9_1_501_0:18
        at Function.globalEval (_osjs.js?9_1_501_0:18)
        at OsEvaluateUserJavaScript (_osjs.js?9_1_501_0:5)
        at OsExecuteJSONUpdate (_osjs.js?9_1_501_0:5)

I have these errors twice because I have two sections in the same page (that's my guess).

I really need to understand this or, at least, hide it from end-user because the error is very strange and technical. 


Thanks

I've seen errors with SectionExpandable & AjaxRefresh when they are nested, or at very different levels of the document. Solution was to use Section instead.

J.Ja

Hello Maicon and Otacon,

Sorry for the late reply, but this post evaded our radars. For future questions please use the Silk UI Forums.

In order to better understand your issue, we need to know your Silk UI Version. To get Silk UI Version, please go to: 

          myserver/SilkUIFramework

Also, can you please replicate the issue on a new application and share it with us?

Cheers,

Samuel Jesus

Hi,

I'm using Version 2.1.1

If you don't mind me to PM you, I can share with you more details. I can't share it on the forum neither reproduce on a single espace.