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


Groups > comp.lang.javascript > #14463

Re: Problem with FF

From Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid>
Newsgroups comp.lang.javascript
Subject Re: Problem with FF
Date 2012-06-11 18:32 +0100
Organization Home
Message-ID <bRD5N6Fjui1PFwMA@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <a3kb0bFr9bU1@mid.individual.net> <RtidnaVa6vEWvkjSnZ2dnUVZ_jCdnZ2d@westnet.com.au>

Show all headers | View raw


In comp.lang.javascript message <RtidnaVa6vEWvkjSnZ2dnUVZ_jCdnZ2d@westne
t.com.au>, Mon, 11 Jun 2012 08:45:21, Andrew Poulos
<ap_prog@hotmail.com> posted:

>On 11/06/2012 5:31 AM, Mel Smith wrote:
>>      I'm having a problem with FireFox in the code below. However, IE 7 and
>> Chrome work properly.
>>
>>      My code below is surely suspect :((
>>
>>      Would someone suggest a correction so that FF, Chrome, and IE work in
>> the same fashion:  i.e., operation returns to my password box with every
>> keystroke except <cr> and <tab>
>>
>>      I have commented the place where FF signals the error:   " e is
>> undefined ", this error occurs every time I enter a character in my password
>> text input box.
>
>function submitpwd(e) {
>-------------------^
>
>Does adding an 'e' help?

I'd try removing the var too, in

        if (!e) var e = window.event ;

I use                   e = e || window.event
but would prefer        e ||= window.event      // <g>

-- 
 (c) John Stockton, nr London, UK.    ?@merlyn.demon.co.uk     Turnpike v6.05.
 Website  <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
 PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
 Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.

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


Thread

Problem with FF "Mel Smith" <med_cutout_syntel@aol.com> - 2012-06-10 13:31 -0600
  Re: Problem with FF Andrew Poulos <ap_prog@hotmail.com> - 2012-06-11 08:45 +1000
    Re: Problem with FF "Mel Smith" <med_cutout_syntel@aol.com> - 2012-06-10 21:17 -0600
      Re: Problem with FF Gene Wirchenko <genew@ocis.net> - 2012-06-10 21:12 -0700
      Re: Problem with FF Martin Honnen <mahotrash@yahoo.de> - 2012-06-11 13:02 +0200
        Re: Problem with FF Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-06-11 13:28 +0200
          Re: Problem with FF Martin Honnen <mahotrash@yahoo.de> - 2012-06-11 15:11 +0200
            Re: Problem with FF "Mel Smith" <med_cutout_syntel@aol.com> - 2012-06-11 08:11 -0600
              Re: Problem with FF "Mel Smith" <med_cutout_syntel@aol.com> - 2012-06-11 08:33 -0600
    Re: Problem with FF Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-11 18:32 +0100

csiph-web