For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2004 > Re: [PEAR] Re: quickForm : allowed memory exhausted









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Re: quickForm : allowed memory exhausted
Markus Wolff

2004-04-25, 1:32 pm

Tommy Ipsen wrote:

> Cindy Blondeel wrote:
>
>
>
> Have you considered reducing the number of elements - it's hardly user
> friendly to confront the user with this kind of choice...
>
> Perhaps you should consider the custom "hier-select" element instead -
> it might help you avoid the memory issue as well as increasing the
> usability of your page!


The hierselect element doesn't really help a lot when you got 1600
possible choices - also, you'd have to be able to categorize them so
that adding another selection layer makes sense at all.

For elements with so many possible choices I have written myself a
custom QuickForm elemnent that does nothing else but draw a selection
button instead of a selectbox and places a hidden IFrame unter it.
When you click on the button, the IFrame becomes visible - inside that
frame, I load a script with a textbox that allows you to specify some
search criteria. On submitting that box, the matching results are shown
- and if you decide to click on one of them, the IFrame is closed and
the ID of the object you clicked on is written into a hidden field in
your original form (obviously, Javascript comes into play here).

I found this to be a quite comfortable solution for picking one out of
so many options.

CU
Markus
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com