0

I'm getting an error in JavaScript

if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
Tariqulazam
  • 4,535
  • 1
  • 34
  • 42

2 Answers2

0

i think typeof to be used as

if(typeof Sys== "undefined")
sasi
  • 4,192
  • 4
  • 28
  • 47
0

Triple equals, ===, in javascript is to test for the same type or object.

Change it to double equals, == instead. This will test for the value instead of object equality.

Possible duplicate of these questions:

Community
  • 1
  • 1
Jess
  • 23,901
  • 21
  • 124
  • 145