Re: Posting data from templates to views.py without using forms.

2019-01-02 Thread Osezele Orukpe
I guess you not using a frontend framework like reactJs or AngularJs. So i would suggest you look into AJAX. this could be done easily using jQuery's ajax function On Tuesday, January 1, 2019 at 3:46:53 PM UTC+1, Surajeet Das wrote: > > Well , I want to post data from templates to views.py by cl

Re: Posting data from templates to views.py without using forms.

2019-01-01 Thread pradam
Hi Surjeet, Then you should rely on ajax call or angularjs using ng-click. On Tue, Jan 1, 2019 at 8:16 PM Surajeet Das wrote: > Well , I want to post data from templates to views.py by clicking a button > without using forms. Basically the button should not be of type submit > because I don't w

Re: Posting data from templates to views.py without using forms.

2019-01-01 Thread pradam
Hi Surjeet, Then you should rely on ajax call or angularjs using ng-click. On Tue, Jan 1, 2019 at 8:16 PM Surajeet Das wrote: > Well , I want to post data from templates to views.py by clicking a button > without using forms. Basically the button should not be of type submit > because I don't w

Posting data from templates to views.py without using forms.

2019-01-01 Thread Surajeet Das
Well , I want to post data from templates to views.py by clicking a button without using forms. Basically the button should not be of type submit because I don't want the page to be refreshed .I want to view the data from database after the query in the same page. -- You received this message