javascript - SCRIPT5007: The value of the property 'xxxx' is null or undefined, not a Function object -


i have got error on ie8 undefined , not function object.
on ie10 , other browsers works fine. below javascript code

 function sendinterestloudandclear1(e, link, username, profilelink, listingstatus) {         // disable further clicks         if($(e) != null){             $(e).set("onclick", "sendinterestloudandclear(null)");        if (link.indexof("sendinterest") > -1) {           // need listingstatus           setlistingdetails('', listingstatus);            if ('{{listingtype}}' == 'look') {              dotracking( 'loggedinsummarylook','click', 'sendinterestbutton', listingstatus);           }           else {                dotracking( 'loggedinsummaryhave', 'click','sendinterestbutton', listingstatus);           }           new request({               url: link,               onsuccess: function () {                 {%if useloudandclear %}                       var lightboxid = 'send_interest-basic';                     if ({{subsstatus}} == false || listingstatus == '2')                     {                         lightboxid = 'send_interest-premium';                     }                      setlightboxforsendinterest(lightboxid, username, profilelink);                      showlightbox(lightboxid, 659);                          if (e.getattribute('title') == null || e.getattribute('title') == "") {                           // remove node reference parent                           var parent = $(e).getparent();                            // destroy anchor link , child - free memory.                           $(e).destroy();                            // construct new html inserted parent node                           var img1 = new element("img", { src: "{{staticurl}}/images/ok.png", alt: "{{caption3108}}" });                           var span2 = new element("span", { class: "erm-grey-fav", title: "{{caption3108}}", text: "{{caption3108}}", onclick: "sendinterestloudandclear(this)" });                           var interestsentelements = new elements([img1, span2]);                            // use adopt instead add dom new divs                           $(parent).adopt(interestsentelements);                       }                   {%else%}                         //showlightbox('interestsentbox', 300);                       if (e.getattribute('title') == null || e.getattribute('title') == "") {                           e.removeattribute('onclick');                           e.removeattribute('style');                           // e.innerhtml='{{caption1393}}';                           $(e).set("html", '{{caption1393}}');                           var id1 = e.get('id');                           var img1 = id1 + "_sendinterest";                           $(img1).src = "{{staticurl}}/images/ok.png";                           $(img1).style.display = "inline";                           e.setattribute('title', "{{caption1269}}");                           e.set('class', 'erm-grey-fav');                       }               {%endif%}               },               onfailure: function () {                   alert("failed");               }           }).send();       }       }    } 


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -