Processing
 

JavaScript How to get a list of global Function name in internet explorer 8

07/09/2016 06:59#1

Drol

Member

Joined at: 4 months ago

Post: 1

Thank: 0

Thanked: 0

I want to find all Function named goXXXXGridSearch and change it's behavior. It works on Chrome but can't work on IE8. because the 'for in window' on IE8 didn't show the function I had defined. How could I make it work on IE8.

This is my code:

$(function(){     var re = /(go)+\w+(GridSearch)/;     for(var fn in window) {         if(re.test(fn)) {             var target = window[fn];             window[fn] = function(){                 loading(true);                 setTimeout(function(){                     target.apply(window, arguments);                     loading(false);                 }, 500);             };         }     } }); 
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