Re: template drop down menu

2017-06-06 Thread sum abiut
Thanks heaps for your response. I will have a look into it. Cheers, On Wed, Jun 7, 2017 at 9:22 AM, Bernd Wechner wrote: > If you want a sample for a javascript postback when drop down changes I > have one here: > > https://github.com/bernd-wechner/CoGs/blob/master/ > Leaderboards/templates/CoG

Re: template drop down menu

2017-06-06 Thread Bernd Wechner
If you want a sample for a javascript postback when drop down changes I have one here: https://github.com/bernd-wechner/CoGs/blob/master/Leaderboards/templates/CoGs/view_leaderboards.html It's attached to the select "selNames" which you can trace to the Django view "ajax_Leaderboards" in: ht

Re: template drop down menu

2017-06-06 Thread sum abiut
Thanks heaps for your response. It really clear things up and help me get started. Cheers, On Wed, Jun 7, 2017 at 5:05 AM, ludovic coues wrote: > The short answer to "how can I know what option is selected before > doing the queyr" is "you cannot know". > > Here is a quick drawing of your tim

Re: template drop down menu

2017-06-06 Thread ludovic coues
The short answer to "how can I know what option is selected before doing the queyr" is "you cannot know". Here is a quick drawing of your timeline request to your server -> process view (where you do db request) -> process template -> send request back to user -> user select an option At no poin

template drop down menu

2017-06-05 Thread sum abiut
Hi, need some directions, i need to query the my database and display the result of the query in the table. to do that i want to use a drop down menu and get the users to select options from the drop menu on the template. for example if a user select a word from the drop down menu i want to filter