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


Groups > comp.lang.javascript > #18189

Re: IE8 attachEvent problem

From "Mel Smith" <med_cutout_syntel@aol.com>
Newsgroups comp.lang.javascript
Subject Re: IE8 attachEvent problem
Date 2013-01-21 09:52 -0700
Message-ID <am5a2tF758fU1@mid.individual.net> (permalink)
References <am2ojqFk54hU1@mid.individual.net> <50fc2fac$0$6566$9b4e6d93@newsspool4.arcor-online.net> <am2pjiFkcl1U1@mid.individual.net> <am2r29Fko0fU1@mid.individual.net> <50fd2118$0$6563$9b4e6d93@newsspool4.arcor-online.net>

Show all headers | View raw


Martin said:

"Martin Honnen" <mahotrash@yahoo.de> wrote in message 
news:50fd2118$0$6563$9b4e6d93@newsspool4.arcor-online.net...
> Mel Smith wrote:
>
>>      It *does this* but still shows the error on IE8.
>
>
> I am not sure about older IE versions, according to 
> http://msdn.microsoft.com/en-us/library/ie/ms536730%28v=vs.85%29.aspx 
> scrollIntoView takes a boolean argument.
> Does the error vanish when you explicitly call
>    document.getElementById(tid).scrollIntoView(true);
> ? Or which statement currently gives the error?
>

Hi Martin:

    In a 'later/lower' post, I corrected statement in question and used 
'document.body. etcetera' .  This stopped the error.

    With that correction, I now have the following results:

    IE8 - Works corectly
    FF -   Works correctly
    Opera - Works correctly
    Chrome - Page displays at *top*, not where it was 'remembered'
    Safari - Page displays at *top*, not where it was 'remembered'

    Since my users are older retired north americans, and since in this 
demographic (IE and Chrome) are predominant,  I'd like to determine why 
Chrome is not scrolling to the remembered position (which is a multi-line 
cell in a long 3-column table)

    btw,  I *did* place a 'true' as an argument in the scrollIntoView() 
function.  But, this is the default anyway and made no difference.

    Also, I placed an Alert() just ahead of the 'scroll' code to ensure that 
the ID was correct. It _was_

    So, if I change the 'onload' event to point at my new ID, why is it 
ignored by Chrome and Safari when I 'return' to the page ??

Thanks for the comment.

-Mel Smith

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


Thread

IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 10:42 -0700
  Re: IE8 attachEvent problem Martin Honnen <mahotrash@yahoo.de> - 2013-01-20 18:55 +0100
    Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 10:59 -0700
      Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 11:24 -0700
        Re: IE8 attachEvent problem Martin Honnen <mahotrash@yahoo.de> - 2013-01-21 12:06 +0100
          Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-21 09:52 -0700
  Re: IE8 attachEvent problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-20 20:11 +0100
    Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 13:21 -0700
      Re: IE8 attachEvent problem Bjoern Hoehrmann <bjoern@hoehrmann.de> - 2013-01-20 21:44 +0100
        Re: IE8 attachEvent problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 00:07 +0100
        Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 16:19 -0700
          Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-20 17:18 -0700
    Re: IE8 attachEvent problem Martin Honnen <mahotrash@yahoo.de> - 2013-01-21 18:28 +0100
      Re: IE8 attachEvent problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 19:07 +0100
        Re: IE8 attachEvent problem Martin Honnen <mahotrash@yahoo.de> - 2013-01-21 19:33 +0100
        Re: IE8 attachEvent problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-21 13:05 -0700
          Re: IE8 attachEvent problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-22 09:00 +0100
  Re: IE8 attachEvent problem Arty Effem <ignoring@mail.com> - 2013-01-23 13:49 -0800

csiph-web