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


Groups > comp.lang.javascript > #31376

Re: event listener behavior different in ie chrome

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: event listener behavior different in ie chrome
Date Thu, 15 Sep 2016 01:09:39 +0100
Organization A noiseless patient Spider
Lines 41
Message-ID <87oa3qm3b0.fsf@bsb.me.uk> (permalink)
References <f56b7236-7009-4a5a-b50c-a8c8ff3f5769@googlegroups.com> <87bmzqoa2h.fsf@bsb.me.uk> <59b6ef73-5015-49ac-97a5-431e16a3282b@googlegroups.com> <87zinami9x.fsf@bsb.me.uk> <d44e9c5d-55d6-4471-bec4-e7075aca07aa@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="7780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18oiNZ2xI7ZWLjZH5Z9wSU+73Vgl2TWosA="
Cancel-Lock sha1:3MMZXJ+G65S+l0TqEGwt5A6aa1o= sha1:rSBEEkBwLEfGLTtd1eQ9NGgALWY=
X-BSB-Auth 1.06eeef19d6668e6057c8.20160915010939BST.87oa3qm3b0.fsf@bsb.me.uk
Xref csiph.com comp.lang.javascript:31376

Show key headers only | View raw


Andrew <andrew.m.levin.1@gmail.com> writes:

> On Wednesday, September 14, 2016 at 8:46:27 PM UTC+2, Ben Bacarisse wrote:
>> Andrew <*@gmail.com> writes:
>> 
>> > On Wednesday, September 14, 2016 at 4:00:47 PM UTC+2, Ben Bacarisse wrote:
>> <snip>
>> >> ...  What is the overall objective?
>> <snip>
>> > I would like to submit the form then reset the form (so that the
>> > submitted form is not empty). How can I guarantee that the submit and
>> > the reset are performed in the order that I want them to be performed?
>> 
>> This is not your overall goal.  That's just what the code tries to do
>> written out in English -- i.e. there's no new information here.
>> 
>> I don't know any way to help you do what you want without more
>> information.  The details depend on too many things left unspecified.
>
> Hi Ben,
>
> I have a form with a text box in it:
>
>  <form id="add_message_form" target="console_iframe1" method="post" action="add_message">                                                                                 
>   <input type="text" id="message" name="message" size="100" /> <br> <br>                                                                                                  
>   </form>                                                                                                                                                                 
>
> I would like the following to happen when the user presses enter in the text box.
>
> 1) The form will be submitted.
>
> 2) The text in the text box will disappear.
>
> Obviously, I want the form to be submitted with a nonempty text box
> value.

I think you will have listen for the the iframe being loaded and reset
the form on that event.

-- 
Ben.

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


Thread

event listener behavior different in ie chrome Andrew <andrew.m.levin.1@gmail.com> - 2016-09-14 06:14 -0700
  Re: event listener behavior different in ie chrome Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-14 15:00 +0100
    Re: event listener behavior different in ie chrome Andrew <andrew.m.levin.1@gmail.com> - 2016-09-14 07:13 -0700
      Re: event listener behavior different in ie chrome Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-14 19:46 +0100
        Re: event listener behavior different in ie chrome Andrew <andrew.m.levin.1@gmail.com> - 2016-09-14 11:53 -0700
          Re: event listener behavior different in ie chrome Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-15 01:09 +0100
      Re: event listener behavior different in ie chrome Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-09-15 08:16 +0200

csiph-web