Re: Button Event

2019-04-30 Thread Joel Mathew
Templates expand into html. So you just write javascript like you normally do. You call javascript from within your templates by using something like: Here, I am using {% load static %} Sincerely yours, Joel G Mathew On Tue, 30 Apr 2019 at 12:05, Mayur Bagul wrote: > Thanks Ahmed, > >

Re: Button Event

2019-04-30 Thread Suresh Kannan
Hi, Have a look at this https://stackoverflow.com/questions/298772/django-template-variables-and-javascript There are also several tutorials in youtube as well. On Mon, Apr 29, 2019 at 1:03 PM Mayur Bagul wrote: > Hello Community, > > Im looking for solution on Button Event.

Re: Button Event

2019-04-30 Thread Mayur Bagul
Thanks Ahmed, can you please provide me resource to learn how to use java script and events in django Templates? Because im not getting proper resource how to use java script in django. Actually on one web page there will be one button after clicking on that button i want to merge another web

Re: Button Event

2019-04-29 Thread Ahmed Ishtiaque
Hi Mayur, I'm not sure what you mean by "there is no javascript in django" because I use it all the time. JS is not tied to Django in any way since its operations are usually client-side and so it can be used inside your Django templates. In any case, you can have JS code in your template inside

Button Event

2019-04-29 Thread Mayur Bagul
Hello Community, Im looking for solution on Button Event. I have situation like mention below : i have one button check temperature. after clicking on it; it should display dummy temperature on template from view.py i wrote. but im not getting how i can do this because there is no javascript

Re: Redirect from button event?

2006-08-31 Thread Ivan Sagalaev
Russell Keith-Magee wrote: > Can you make the button an inside a action="myurl" method="post">, where myurl is either: I would say GET here is better instead of POST. Because it's not changing anything. --~--~-~--~~~---~--~~ You received this message because

Re: Redirect from button event?

2006-08-30 Thread charles sibbald
Better to have multiple DIVs and bring up a new DIV dynamically based on the choice.This little "AJAX" way is quicker and cleaner.When you talk about data table...do you mean large data grid with inital form requiring base input range and selection criteria, theĀ  the user clicks submit and a large

Re: Redirect from button event?

2006-08-30 Thread Russell Keith-Magee
On 8/31/06, frank <[EMAIL PROTECTED]> wrote: This is clearly not the "Django way", but is there some way in whichthis might be accomplished?Can you make the button an inside a , where myurl is either: 1) the location you want the button to go to, or 2) a URL that will redirect based on which

Redirect from button event?

2006-08-30 Thread frank
This may seem perverse, but I'd like to redirect to a new page from a button event rather than the usual clicking on a link. Essentially, the user is presented with a table of items, each of which has an associated radio button. At the bottom (or top) of the table is a series of buttons