List Info

Thread: PopUp instead of Select widget (newforms)




PopUp instead of Select widget (newforms)
user name
2007-07-30 10:12:33
Hi,

I want to use a popUp instead of an select widget, since
there will be too many entries (>10.000). It would be
better
to use a PopUp with a search form. Has anyone done something
like
this?

I search some example code to learn from.

 Thomas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: PopUp instead of Select widget (newforms)
country flaguser name
United States
2007-07-30 12:13:43
Oops..pardon the typo... #1 shold say "Display a
div"

On Jul 30, 1:10 pm, "carole.zie...gmail.com"
<carole.zie...gmail.com> wrote:
> I am not using new forms... but I'm assuming you would
make this a
> text field... with a link next to it that says
something like 'view
> existing entries'
>
> Then when a user clicks that, you could do one of the
following:
>
> 1. Display a ldiv with a list of all entries, and make
it so that when
> the user scrolls through the list and clicks on one, it
closes the
> div, and sets the text in the entry box ( if you need
the ID of what
> is selected... you could do this in an invisible form
field ).
>
> 2. Display a search box, then post a form submit back
to the same
> page, with parameters set so that it comes back with
matching results
> displayed, each as a link to hide the div and set form
variables as
> described above.
>
> 3. Display a search box, and use AJAX to pull back the
matching
> results, with a list displaying matching results, each
as a link to
> hide the div and set form variables as described
above.
>
> On Jul 30, 11:12 am, Thomas Guettler <h...tbz-pariv.de> wrote:
>
> > Hi,
>
> > I want to use a popUp instead of an select widget,
since
> > there will be too many entries (>10.000). It
would be better
> > to use a PopUp with a search form. Has anyone done
something like
> > this?
>
> > I search some example code to learn from.
>
> >  Thomas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: PopUp instead of Select widget (newforms)
country flaguser name
United States
2007-07-30 12:10:54
I am not using new forms... but I'm assuming you would make
this a
text field... with a link next to it that says something
like 'view
existing entries'

Then when a user clicks that, you could do one of the
following:

1. Display a ldiv with a list of all entries, and make it so
that when
the user scrolls through the list and clicks on one, it
closes the
div, and sets the text in the entry box ( if you need the ID
of what
is selected... you could do this in an invisible form field
).

2. Display a search box, then post a form submit back to the
same
page, with parameters set so that it comes back with
matching results
displayed, each as a link to hide the div and set form
variables as
described above.

3. Display a search box, and use AJAX to pull back the
matching
results, with a list displaying matching results, each as a
link to
hide the div and set form variables as described above.

On Jul 30, 11:12 am, Thomas Guettler <h...tbz-pariv.de> wrote:
> Hi,
>
> I want to use a popUp instead of an select widget,
since
> there will be too many entries (>10.000). It would
be better
> to use a PopUp with a search form. Has anyone done
something like
> this?
>
> I search some example code to learn from.
>
>  Thomas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )