On Sunday, September 28, 2003, at 08:49 AM, Karen J. Cravens wrote:


..

It's still sort of do-able, depending on your reason for frames.  If
they're just there to, say, provide scrollbars and you don't mind
refreshing the whole page, you can do something like this:
..

On Sunday, September 28, 2003, at 02:49 PM, Erik wrote:


..

This is a little off-HTML::Template topic but I might propose another
solution.
..

Thanks for the replies folks. Really appreciate it. However, I _need_ to use frames because... well, I need to. I am not a big fan of frames, and know most all the ways to avoid them (or fake them... overflow:auto is great). However, I also believe that frames can be immensely useful in certain situations, and this is one of 'em.


POST requests usually cache-out, and db queries are expensive. In this application, frames not only simplify navigation, they also minimize user-webserver as well as webserver-dbserver traffic.

As I described earlier, I have four frames like so (we can forget about the header frame) --

header.cgi      --> header.tmpl      --> frame: header
map.cgi         --> map.tmpl         --> frame: map
table.cgi       --> table.tmpl       --> frame: table
tabledetail.cgi --> tabledetail.tmpl --> frame: tabledetail

clicking on the map (in the map frame, obviously), causes map.cgi to select certain features in the map and redraw the map with those features selected. Those features are also connected to a dbf file (and later on, to a real table in MySQL). Hence, the dbf rows are also selected. However, the map gets redrawn via the map.tmpl in the map frame, while the dbf rows need to be shown in the table frame. The way I am doing it right now is that I show the map in the map frame, and then a form button with a lame message such as "12 features selected -- press button to view them". Pressing the button calls table.cgi with target="table", and the dbf rows are displayed in the table frame. Then clicking on any single row shows its details in the tabledetail frame.

Ideally, I would like map.cgi to select the features in the map, redraw the map, and send the map to the map frame, and the dbf rows to the table frame. In case the table frame or the tabledetail frame have query results from a previous call, I would also like to send a blank.html to them, etc.

Drawing the map and querying the dbf file (or the MySQL table, later on) is a fairly expensive proposition (esp drawing the map), so frames allow me to have the user navigate only parts of the application desktop without refreshing things unnecessarily.

Would be nice if I could somehow tell a template to go to a specific frame, of course, filling a frame is a pulling action, so there is no way to send a template to a specific frame. I am coming to the conclusion that I cannot do what I want, and will have to devise some other approach to this app.

Puneet.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to