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


Groups > comp.lang.javascript > #15469

Re: objected oriented JS in IE

Date 2012-08-20 12:36 -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> <obednVG3t5N2ya3NnZ2dnUVZ_q2dnZ2d@posted.localnet> <k0qqsu$v80$1@dont-email.me>
Message-ID <ddCdnfehDMswDK_NnZ2dnUVZ_gWdnZ2d@posted.localnet> (permalink)

Show all headers | View raw


Gregor Kofler wrote:
> Am 2012-08-19 04:52, Robert Baer meinte:
>> 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).
>
> Er... what? Anyway, when did you start *giving* advice in JS?
>
> To clarify things: scripts that are designed to work in IE8 will rarely
> work in any standards compliant browser (i.e. Chrome/Chromium, Firefox,
> Safari, Opera, etc.)
>
> Gregor
   I am no a programmer, do not really know HTML or CSS,but have been 
able to do some modifications where IE8 and FireFox give similar 
rendering; Chrome totally futzes the result.
   Do need help in that area; where should i place a detailed query?

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