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


Groups > comp.lang.javascript > #26840

Re: FireFox onclick problem

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Mel Smith" <syntel@cox.net>
Newsgroups comp.lang.javascript
Subject Re: FireFox onclick problem
Date Tue, 10 Feb 2015 14:55:26 -0700
Lines 33
Message-ID <cjvd2sFbke3U1@mid.individual.net> (permalink)
References <cjuvd1F7thrU1@mid.individual.net> <XnsA43DD0F0D8751eejj99@194.109.133.133>
X-Trace individual.net 80BOfB/GsZVFQ9EV+Mpx7g6t5Il6y5JrnPCAmYUWlcsBTVEYMG
Cancel-Lock sha1:mTnmulhFP5WEbdcqL/LC0WTGloA=
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
X-RFC2646 Format=Flowed; Original
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.6157
Xref csiph.com comp.lang.javascript:26840

Show key headers only | View raw


Evertjan said:
> Works fine here also in FF.
>
> ==============
>
> I would use a more general solution for the function,
> if the <input> is a always direct child:
>
> <script type='text/javascript'>
> function hideParent(x) {
>   x.parentNode.style.display = "none";
> };
> </script>
>
> <div>
> <input type="button" onclick="hideParent(this);" value="Hide Parent">
> lots of text and <br> here
> </div>

Hi Evertjan:

    Tried your general method above. Same failed result.

    Again, current versions of IE and Chrome work correctly, immediately 
hiding the 'notice' division. But using FF: nothing happens.

    So, I reverted to my original code (as shown in my original post) for 
now, and will try 'debugging'.  But its so simple and the other browsers 
work and have worked for years with this code. Sigh ...

-Mel

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


Thread

FireFox onclick problem "Mel Smith" <syntel@cox.net> - 2015-02-10 11:02 -0700
  Re: FireFox onclick problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-02-10 20:32 +0100
    Re: FireFox onclick problem "Mel Smith" <syntel@cox.net> - 2015-02-10 14:55 -0700
  Re: FireFox onclick problem Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-02-10 19:34 -0200
    Re: FireFox onclick problem "Mel Smith" <syntel@cox.net> - 2015-02-10 15:21 -0700
  Re: FireFox onclick problem "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-02-10 23:37 +0100
    Re: FireFox onclick problem "Mel Smith" <syntel@cox.net> - 2015-02-10 16:21 -0700

csiph-web