Hmm I thought of that, but then you have the overhead of a 'spare' widget in the PHP-o-sphere. Does anyone have a way to test which is better/worse in that respect - create/destroy on demand vs show/hide and maintain the widget throughout?
Well, as a rough yardstick: if your application shows the dialog frequently, then it's better to maintain it. If you're showing it only once or twice, I guess recreating it is the best option.
A spare widget object in the PHP application sphere shouldn't add _much_ of an overhead anyway... How big could it get?
- Anant