|
List Info
Thread: Redirect from button event?
|
|
| Redirect from button event? |

|
2006-08-31 00:04:41 |
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 representing different choices about what
they would
like to do with the item on the selected row. The user must
select a
row (the radio button), and then press the function-button
below.
Adding a multiplicity of links in each row might achieve a
similar end,
but would clutter things to an unacceptable degree (given
the number of
different things that could be done and a large data table).
This is clearly not the "Django way", but is
there some way in which
this might be accomplished?
Thanks for all your insights!
-frank
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| Redirect from button event? |

|
2006-08-31 00:21:31 |
|
On 8/31/06, frank <u.washington.edu">fpm u.washington.edu> wrote:
This is clearly not the "Django way", but is there some way in which this might be accomplished? Can you make the button an <input type="submit"> inside a <form action="myurl" method="post">, where myurl is either:
1) the location you want the button to go to, or 2) a URL that will redirect based on which button was pressed?
Yours, Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users googlegroups.com To unsubscribe from this group, send email to django-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---
|
| Redirect from button event? |

|
2006-08-31 01:07:50 |
|
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 table of data is generated and can be filtered sorted etc.?
regards
charles
Russell Keith-Magee <freakboy3742 gmail.com> wrote:
On 8/31/06, frank <u.washington.edu">fpm u.washington.edu> wrote: This is clearly not the "Django way", but is there some way in which this might
be accomplished? Can you make the button an <input type="submit"> inside a <form action="myurl" method="post">, where myurl is either:
1) the location you want the button to go to, or 2) a URL that will redirect based on which button was pressed?
Yours, Russ Magee %-)
Stay in the know. Pulse on the new Yahoo.com. Check it out.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users googlegroups.com To unsubscribe from this group, send email to django-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---
|
| Redirect from button event? |

|
2006-08-31 04:00:04 |
Russell Keith-Magee wrote:
> On 8/31/06, frank <fpm u.washington.edu> wrote:
> >
> >
> > This is clearly not the "Django way",
but is there some way in which
> > this might be accomplished?
>
>
> Can you make the button an <input
type="submit"> inside a <form
> action="myurl"
method="post">, where myurl is either:
>
> 1) the location you want the button to go to, or
> 2) a URL that will redirect based on which button was
pressed?
>
> Yours,
> Russ Magee %-)
>
Wooo hooo!
Russell, you've hit it perfectly! My HTML ignorance really
got me that
time.
Using the ACTION= form key works great!
THANKS!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| Redirect from button event? |

|
2006-08-31 13:00:56 |
Russell Keith-Magee wrote:
> Can you make the button an <input
type="submit"> inside a <form
> 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 you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
[1-5]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|