shows js errors on page for everyclick on child table like sorting,pagination etc.

shows js errors on page for everyclick on child table like sorting,pagination etc.

capriscapris Posts: 17Questions: 7Answers: 0

Hi Allan,

I have been reading your answers and learnt how to work with datatables. Thankyou verymuch for sharing knowledge.
Now i have created nested datatables. I'm using jquery UI tabs. so on each tab i have nested datatables. These datatables are generated whenever a tab is created on user click on some link. main/master table has session information and on click of a <td> in master table, child table which has Event information will be displayed. these are the nested objects, i get from backend in single Ajax response. Im able to load the child table on click. once loaded it adds js errors at the bottom of the page for every click on it like sort on a cloumn, click next on page etc... at the end i see 30 to 50 errors added up. functionlity for sorting,filtering,paging works good, but along with that it adds js error before doing the job. i really dont unsertand why it throws js error when its able to load complete data and perform well.
I gives error
'nTr' is null or not an object - jquery.dataTables.min.js, line 93 character 179.... im using jquery.dataTables.min.js,Version: 1.9.4

https://jsfiddle.net/cr631man/4/... has my code

Answers

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin

    403 Forbidden

    Allan

  • capriscapris Posts: 17Questions: 7Answers: 0

    https://jsfiddle.net/cr631man/5/

    below are the objects taken from my log. key,val represents the session(master) map objects and eventList key represent Event data which is inner(nested) table. Here session row in master table has two events which are in inner table.

    key:Status val:SUCCESS
    key:PcPrint val:6F06868FC2191F35C34ACED42EC14B7BE00F1B00
    key:TdlZone val:-8
    key:State val:PRIVATE
    key:UserAgent val:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36
    key:SessionDate val:03/11/2015 02:23:55 PM
    key:additionalSessionInfo val:[Ecn:415663711022111, WfaCookie:=45201503110853511739329810, oaamId:13605226, AppId:LOGIN, UserId:900163772, 25412436:First Time Device for User]
    key:UserName val:RUETOETYI
    key:Country val:PRIVATE
    key:XaCustId val:900163772
    key:eventList val:[{"additionalEventInfo":"[Scope:WELLSFARGO, Kcookie:0256dde7-7d2d-492e-8d56-aa1c6456e04e, LineOfBusiness:CONS, ActivityStatus:SUCCESS, HostNme:ISG-VGER-VM, ApplicationNme:LOGINAPP-INSTANCE01, Ipv4:10.46.14.86, Ipv4LocId:25120, UserAgentName:MOZILLA/5.0 (WINDOWS NT 6.1; WOW64) APPLEWEBKIT/537.36 (KHTML, LIKE GECKO) CHROME/39.0.2171.99 SAFARI/537.36, BrowserLang:en-US,en;q=0.8, Authcookie:7f2a2f12-2308-48c9-b434-f89189af9701]","eventDateTime":"03/11/2015 05:23:51 PM","eventType":"PRESENT_LOGIN"}, {"additionalEventInfo":"[Scope:WELLSFARGO, UserName:RUETOETYI, Registration:REGISTERED, Kcookie:0256dde7-7d2d-492e-8d56-aa1c6456e04e, LineOfBusiness:COB, ActivityStatus:SUCCESS, HostNme:ISG-VGER-VM, ApplicationNme:LOGINAPP-INSTANCE01, Ipv4:10.46.14.86, Ipv4LocId:25120, UserAgentName:MOZILLA/5.0 (WINDOWS NT 6.1; WOW64) APPLEWEBKIT/537.36 (KHTML, LIKE GECKO) CHROME/39.0.2171.99 SAFARI/537.36, ReferrerName:UAT-ONLNSVCS.ISGPP.WELLSFARGO.COM, BrowserLang:en-US,en;q=0.8, Authcookie:7f2a2f12-2308-48c9-b434-f89189af9701, RecommendAction:ALLOW, ActimizeRiskscore:0, PAGEID:WIB_ACCESS, EMAIL_VALIDATION:Y, CREDENTIAL_PROFILING:Y, DESTINATION:WIB]","eventDateTime":"03/11/2015 05:23:56 PM","eventType":"USERID_LOGIN"}]
    key:City val:PRIVATE

    data is getting populated as expected ,but js error at the end of page for every click.Tables are created dynamically with dynamic Id's as i have multiple jquery UI tabs. Each tab has master /child tables with filtering,sorting & pagination.Please help me in resolving the js errors.

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin

    I'm getting a syntax error from the code shown in the JSFiddle there. It looks like it is incomplete and doesn't run. Is it running successfully for you in that fiddle?

    Allan

This discussion has been closed.