how to forbidden mouse click and keyboard typing when loading page after press submit button in django web?

24 views
Skip to first unread message

meInvent bbird

unread,
Jun 10, 2016, 1:35:55 AM6/10/16
to Django users
how to forbidden mouse click and keyboard typing when loading page after press submit button in django web?

Sergiy Khohlov

unread,
Jun 10, 2016, 6:28:09 AM6/10/16
to django-users

This is not django question. Let's imagine. User has pressed submit. Browser is forming request and data is passing to web app. Has web aapp informed about user typing? Of course no. Simple redirect makes forgotting filled form.

10 черв. 2016 04:36 "meInvent bbird" <jobma...@gmail.com> пише:
how to forbidden mouse click and keyboard typing when loading page after press submit button in django web?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/792a83c6-500a-4443-8c2b-e1a0cb7ae661%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

meInvent bbird

unread,
Jun 10, 2016, 7:30:57 AM6/10/16
to Django users
sorry for wrong post because i am not familiar with javascript to deal with this problem 
i just afraid user crazily press refresh button multiple times or ctr + r multiple time during page loading 

Sergiy Khohlov

unread,
Jun 10, 2016, 8:56:30 AM6/10/16
to django-users
nothing to do .... 
Simple way is adding unique ID to the request and use it to server request: 
Example : 
1) User get  page with id 1 
2) User send data  to server using id 1 
3) Server send answer with ok and next ID 2

 In case of multiple POST only  first with ID1 is server, other request is send to /dev/null 

Many thanks,

Serge


+380 636150445
skype: skhohlov

Reply all
Reply to author
Forward
0 new messages