Zope uses use GET for URL/cgi information transfer. Most browsers expose the information transfered via a GET in the displayed URL. Some of our users find this confusing. Is there a simple way to avoid the URL display as users traverse the site?
You probably want to investigate the use of sessions. It will keep your URLs relatively clean and allow you to store unique data to pass with each REQUEST. See here: http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Sessions.stx Good luck, Eron On Friday May 9 2003 1:18 pm, Dennis Allison wrote:
Zope uses use GET for URL/cgi information transfer. Most browsers expose the information transfered via a GET in the displayed URL. Some of our users find this confusing. Is there a simple way to avoid the URL display as users traverse the site?
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) --- [This E-mail scanned for viruses by Declude Virus]
-- Eron Lloyd Technology Coordinator Lancaster County Library elloyd@lancaster.lib.pa.us Phone: 717-239-2116 Fax: 717-394-3083 --- [This E-mail scanned for viruses by Declude Virus]
Thank Eron, We use session variable extensively. However, there are many instances where that is not appropriate, for example, forms. -d On Fri, 9 May 2003, Eron Lloyd wrote:
You probably want to investigate the use of sessions. It will keep your URLs relatively clean and allow you to store unique data to pass with each REQUEST. See here: http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Sessions.stx
Good luck,
Eron
On Friday May 9 2003 1:18 pm, Dennis Allison wrote:
Zope uses use GET for URL/cgi information transfer. Most browsers expose the information transfered via a GET in the displayed URL. Some of our users find this confusing. Is there a simple way to avoid the URL display as users traverse the site?
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) --- [This E-mail scanned for viruses by Declude Virus]
-- Eron Lloyd Technology Coordinator Lancaster County Library elloyd@lancaster.lib.pa.us Phone: 717-239-2116 Fax: 717-394-3083
--- [This E-mail scanned for viruses by Declude Virus]
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Fri, 9 May 2003 11:14:44 -0700 (PDT) GMT (..20:14 where i live(GMT+2) ) Dennis Allison asked the Zope mailinglist about the following: DA> Thank Eron, DA> We use session variable extensively. However, there are many instances DA> where that is not appropriate, for example, forms. -d Luckily you can easily specify whether you want your forms to use POST or GET by use of the 'method'-attribute of the form-element in HTML. ;) -- Geir Bækholt
On Friday May 9 2003 2:37 pm, Geir Bækholt wrote:
Luckily you can easily specify whether you want your forms to use POST or GET by use of the 'method'-attribute of the form-element in HTML.
;)
Yes, I forgot to mention that, too. One of the things that makes Zope really amazing is just how clean it is possible to keep your URLs if you design the site's structure right. Doing the equivalent in a purely CGI/database environment like PHP or ASP produces awfully complicated URLs, that honestly aren't even worth writing out, much less trying to get an end-user to be able to understand. Zope is quite elegant in this respect. Cheers, Eron -- Eron Lloyd Technology Coordinator Lancaster County Library elloyd@lancaster.lib.pa.us Phone: 717-239-2116 Fax: 717-394-3083 --- [This E-mail scanned for viruses by Declude Virus]
I agree with you Eron. Our particular site is, I think, remarkably clean but it still has some warts. We're in the midst of re-engineering a code clean-up and two-orders-of magnitude user population scaleup. We pass a lot of information around both in session variables, from forms, and via redirection. You're suggesting some interesting techniques which I'll need to ponder a bit to decide how useful they are. On Fri, 9 May 2003, Eron Lloyd wrote:
On Friday May 9 2003 2:37 pm, Geir B�kholt wrote:
Luckily you can easily specify whether you want your forms to use POST or GET by use of the 'method'-attribute of the form-element in HTML.
;)
Yes, I forgot to mention that, too.
One of the things that makes Zope really amazing is just how clean it is possible to keep your URLs if you design the site's structure right. Doing the equivalent in a purely CGI/database environment like PHP or ASP produces awfully complicated URLs, that honestly aren't even worth writing out, much less trying to get an end-user to be able to understand. Zope is quite elegant in this respect.
On Friday May 9 2003 2:14 pm, Dennis Allison wrote:
Thank Eron, We use session variable extensively. However, there are many instances where that is not appropriate, for example, forms. -d
Perhaps I misunderstood your use case. If you are having users input data into a form, it then silently passes through to the action object (whether it be a script, page, etc.) silently in the REQUEST.form (which you can then get to). If you need this information to stay persistant throughout several pages (i.e. a multi-page form, or simply HREFs), sessions *will* work here, too. Check out that book chapter I referenced under the section "Embedding A Browser Id Into An HTML Link" for concepts. Another option I've found handy is forming arguments based on path traversal, especially with SQL methods. Take care, Eron -- Eron Lloyd Technology Coordinator Lancaster County Library elloyd@lancaster.lib.pa.us Phone: 717-239-2116 Fax: 717-394-3083 --- [This E-mail scanned for viruses by Declude Virus]
Dennis Allison wrote:
Zope uses use GET for URL/cgi information transfer. Most browsers expose the information transfered via a GET in the displayed URL. Some of our users find this confusing. Is there a simple way to avoid the URL display as users traverse the site?
That's the way the WWW works... Documents are addressed by URL's. Maybe you should explain this to your users...;) To hide the URL's to documents from your users, you can put your whole site into a "fullscreen-single-row" frameset. - Create a frameset with only one frame which spans over the whole screen as index_html of your site. - This frameset calls your "actual" start-page and loads it. - That's it. HTH, Maik
participants (4)
-
Dennis Allison -
Eron Lloyd -
Geir Bækholt -
Maik Jablonski