Reply to Flying screens (was Automatically populate a pull down list...)

Your name:

Reply:


Posted by Peter Fox on 11/26/05 12:04

Following on from Peter van Schie's message. . .
>You basically have two options:
Three!

A single list with all options in the form state,city (or city,state)
sorted on the first item. No JS or anything else required.


Four!

Of course PHP sends a whole page and then shuts down so isn't
interactive to the level you want . . .
.. . . But there *is* as way using what I call a flying screen:
The principle is that your page _opens a new window_ containing a form
filled with /the appropriate/ list which then returns the selection to
the session and closes itself.

In your particular case I wouldn't use it as the main window doesn't
update, but it can be handy if you have say a form with the possibility
of wanting to edit the details of some of the items in it. eg:

Team leader [Jim Smith v] [>details]

(drop down and button) where the button brings up details of Jim Smith
in a separate window, perhaps with the possibility of 'doing things',
This means that the main flow is not obscured.

or
Project [Cold Fusion v] [>projects]
where the button allows you to edit the list of projects, perhaps going
off into details about them in another window.

Finally it _is_ possible to get the value picked in a flying window back
to the main screen 'in real time'.
Project name : Cold Fusion [>Change]
where the Change button leads to a screen that allows you to maintain
and select a project, This requires clever javascript passing the
document elements between documents. On closing the flying screen the
form will now be updated to perhaps
Project name : Indian Rope Trick [>Change]

* The advantage of this technique is the flying window is just a side
branch to the main flow of the form which only needs to be used on
occasion but is there where you want it when you want it rather than
having to traipse round the system looking for a maintenance screen.

* The disadvantage is that it is rather hairy.

I've written an article on the subject and have packaged code but I
can't find the article at present and the code would need some hacking
to integrate with the way you write screens ('cos I have a weird home
grown method which is great for quick building but NBG for glueing to
non-weird code models.)

--
PETER FOX Not the same since the statuette business went bust
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация