django - adding a button with parallel functionality

C

chip9munk

Hi all! I'll try to be clear and brief.

I have created a django project some months ago. It is an online survey.
Now I want to add a button that when pressed adds something to a database, but does not change any existing functionalities.

Brief explanation:
button will always be present at the pages with survey questions,
when pressed it will simply add a page number (at which page user decided to press the button) to a database, but the user will continue with the survey as normal.
(when the button is pressed, the view, template, questions at hand should not change. Nothing changes for the survey subject!)

My question is how to simply add this button without interfering with the survey.
I do not need detailed instructions with models, views, templates, etc. just brief idea if it is possible to do that without adding new view, reloading view, adding forms etc...

(If anyone is interested.. the button will be used to mark when (at which page) the user gets bored with questions, it is for the pilot testing of the survey. pilot users will press the button but then continue with the survey.)

Thanks in advance!

Best,

chip
 
R

Roy Smith

Hi all! I'll try to be clear and brief.

I have created a django project some months ago. It is an online survey.
Now I want to add a button that when pressed adds something to a database,
but does not change any existing functionalities.

Brief explanation:
button will always be present at the pages with survey questions,
when pressed it will simply add a page number (at which page user decided to
press the button) to a database, but the user will continue with the survey
as normal.
(when the button is pressed, the view, template, questions at hand should not
change. Nothing changes for the survey subject!)

My question is how to simply add this button without interfering with the
survey.
I do not need detailed instructions with models, views, templates, etc. just
brief idea if it is possible to do that without adding new view, reloading
view, adding forms etc...

Offhand, it sounds like you need a button wired up to some javascript
which fires off an asynchronous HTTP request. But, since you haven't
really described anything about the structure of your application,
that's just a wild guess.

Almost certainly, the real answer has nothing to do with Python, however.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top