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,425
  • 1
  • 35
  • 40

2 Answers2

0

i think typeof to be used as

if(typeof Sys== "undefined")
sasi
  • 3,886
  • 4
  • 26
  • 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
  • 22,018
  • 18
  • 118
  • 135