Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15447

Re: objected oriented JS in IE

Date 2012-08-18 19:52 -0700
From Robert Baer <robertbaer@localnet.com>
Newsgroups comp.lang.javascript
Subject Re: objected oriented JS in IE
References <ee7bd2ed-bc13-470c-91de-6d44dafbd098@googlegroups.com>
Message-ID <obednVG3t5N2ya3NnZ2dnUVZ_q2dnZ2d@posted.localnet> (permalink)

Show all headers | View raw


Larz wrote:
> I have some objected oriented JS that has been working fine in firefox,
> the use of self=this (and self is then used in the callback after that) however in the code below does not work in IE for me. I am using IE 8 at the moment, though it is IE 9 that we will have to support.
> What is best approach ?
>
>    this.upd_params = function () {
>      $("#add-parameter-modal").modal('hide');
>
>      var param_form = $('#add_param_form');
>      self = this;
>      this.added_params = [];
>      this.removed_params = [];
>
>      $('.unused_parameter').each(function (index, obj) {
>        if (obj.checked) {
>          id = self.get_idnum(obj.id);
>          self.add_param2list(id);
>        }
>      });
   You may find that if you get something to work in IE8, that it will 
work everywhere else with the possible exception of Chrome (IE5 does 
better).

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

objected oriented JS in IE Larz <wbsurfver@gmail.com> - 2012-08-17 14:12 -0700
  Re: objected oriented JS in IE Ross McKay <au.org.zeta.at.rosko@invalid.invalid> - 2012-08-18 12:38 +1000
  Re: objected oriented JS in IE Denis McMahon <denismfmcmahon@gmail.com> - 2012-08-18 11:08 +0000
  Re: objected oriented JS in IE Robert Baer <robertbaer@localnet.com> - 2012-08-18 19:52 -0700
    Re: objected oriented JS in IE Gregor Kofler <usenet@gregorkofler.com> - 2012-08-19 15:49 +0200
      Re: objected oriented JS in IE Robert Baer <robertbaer@localnet.com> - 2012-08-20 12:36 -0700
        Re: objected oriented JS in IE Gregor Kofler <usenet@gregorkofler.com> - 2012-08-21 17:04 +0200
          Re: objected oriented JS in IE Robert Baer <robertbaer@localnet.com> - 2012-08-23 22:39 -0700

csiph-web