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


Groups > comp.lang.javascript > #30650

Re: how to forbidden mouse click and keyboard typing and refresh page when loading page after press submit button in form

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: how to forbidden mouse click and keyboard typing and refresh page when loading page after press submit button in form
Date 2016-06-10 10:21 +0100
Organization A noiseless patient Spider
Message-ID <8737ol7614.fsf@bsb.me.uk> (permalink)
References <791fbcd1-83b1-4fc2-84b0-efa7ef6b6c01@googlegroups.com>

Show all headers | View raw


meInvent bbird <jobmattcon@gmail.com> writes:

> 1. how to forbidden mouse click and keyboard typing when loading page
> after press submit button in django web
>
> 2. how to forbidden refresh page in django during loading after press
> submit button in form and only allow close window

You can't forbid anything using client-side scripting.

> 3. which regex are for filtering malicious input in django?

You should not use client-side scripting for this purpose.  Any method
you use in the client to screen out bad input can be circumvented but a
malicious user.  A check in the client can be helpful to the user,
because it can give very rapid feedback out malformed data, but it can't
be relied on to ensure only valid input is sent to the server.

> i just afraid user crazily press refresh button multiple times or ctr
> + r multiple time during page loading

You have to ensure that this is harmless.  The server code must be
designed so that it is unaffected by multiple submissions or reloads.

In short, this is not really a comp.lang.javascript question.

-- 
Ben.

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


Thread

how to forbidden mouse click and keyboard typing and refresh page when loading page after press submit button in form meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 00:26 -0700
  Re: how to forbidden mouse click and keyboard typing and refresh page when loading page after press submit button in form Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-06-10 10:21 +0100
  Re: how to forbidden mouse click and keyboard typing and refresh page when loading page after press submit button in form Erwin Moller <erwinmollerusenet@xs4all.nl> - 2016-06-10 11:32 +0200

csiph-web