Processing
 

IE8 Specific Issue - “The value of the property is null or undefined, not a Function object”

24/08/2016 16:07#1

Joined at: 4 months ago

Post: 1

Thank: 0

Thanked: 0

I've had a little piece of code which I use to share a sitecode between functions, I've had no problem with this until recently i've found that IE8 is throwing an error.

Definition:

(function siteCode(code) {     var siteCode = code;     getSiteCode = function () { return siteCode; }     setSiteCode = function (code) { siteCode = code; } })();  (function employeeCode(code) {     var employeeCode = code;     getEmpCode = function () { return employeeCode; }     setEmpCode = function (code) { employeeCode = code; } })(); 

Usage inside another function:

if (!SiteCode) {     SiteCode = getSiteCode();  // This line errors in IE8 } 

"Sitecode" is an argument, If it isn't passed to the function I wish to load the stored copy, This works in everything but IE8.

Would someone be able to talk me through my issue please?

Similar articles

IE9 dosen't support my Button Tag

4 months ago - Reply: 0 - Views: 14

SSRS 2016 Web protal in IE8

4 months ago - Reply: 0 - Views: 13

how to handle @keyframes not supported by ie9?

4 months ago - Reply: 0 - Views: 5

Detect Windows XP in Firefox with JS

4 months ago - Reply: 1 - Views: 47

IE8 Not showing divs with floats

4 months ago - Reply: 2 - Views: 130

Including ECMA 5 script in IE8

5 months ago - Reply: 1 - Views: 98

XDomainRequest does not work in ie8 & ie9

5 months ago - Reply: 0 - Views: 10

How to minify angular.js?

5 months ago - Reply: 1 - Views: 30

VBA and IE8 - scrape text buried in table

5 months ago - Reply: 1 - Views: 37

Detect http satus IE10

5 months ago - Reply: 0 - Views: 6

how to compress angular.js?

5 months ago - Reply: 0 - Views: 3

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re