Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2012-11-07T15:52:03Z by SystemAdmin
Perumal.N
Perumal.N
4 Posts
ACCEPTED ANSWER

Pinned topic Uncaught TypeError: Cannot use 'in' operator to search for 'SUPPORT_COOKIES

‏2012-11-04T06:22:54Z |
hi,

how to resolve this "Uncaught TypeError: Cannot use 'in' operator to search for 'SUPPORT_COOKIES' in null"

im using normal sqlAdapter,

function myleaveDetails() {
alert("myleaveDetails started");
console.log("========================================");
console.log("enter into applyLeaveDetails 1");
//var studentid = 's000001';
var studentid = localStorage.Studentid;
console.log("enter into applyLeaveDetails 2");
var invocationData = {
adapter : 'student',
procedure : 'myleave',
parameters : studentid
};
console.log("enter into applyLeaveDetails 3");
var options = {
onSuccess : myleaveSuccess,
onFailure : myleaveFailure,
};
console.log("enter into applyLeaveDetails 4");
WL.Client.invokeProcedure(invocationData, options);
}

in chrome inspect element im seeing this error how to resolve this ples help!!
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: Uncaught TypeError: Cannot use 'in' operator to search for 'SUPPORT_COOKIES

    ‏2012-11-05T20:58:13Z  in response to Perumal.N
    Based on the part of the error message
    'SUPPORT_COOKIES' in null
    it seems that you are trying to pull an element out of a null table. Are you sure you have defined that particular element?
    Thanks!
    -Dave
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: Uncaught TypeError: Cannot use 'in' operator to search for 'SUPPORT_COOKIES

      ‏2012-11-07T15:52:03Z  in response to SystemAdmin
      See my reply here:
      https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14906205&#14906205