Re: any suggestions for creating a multi-lingual site?

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25686
interpreted = N
texte = > > As I would prefer not to pass the langauge choice in the URL >(trying to keep > > the URLs as clean as possible) it would seem that I need to read the cookie > > on each page. Having never worked with cookies before, is there a > > performance penalty to doing this? Or is the cookie in memory once it is > > read the first time? > >Use the headers. You have 40 of them and you can even stock more than one >variable in each of them, if you have the technique (that is not that hard). > >You can stock the cart value in a cookie. You can also stock other variables >in different cookie. Cookies are usually retrieved by the browsers at >startup and there should be no performance penalty. Only problem: what if >somebody does not allow cookies to be set?A cool way to pass things is to use the MIME headers, which you can do with a combo of [SETMIMEHEADER] and [LISTMIMEHEADERS].On page one (where you would set your cookie), set a MIME header:[SETMIMEHEADER name=myCoolName&value=myValue]On the next page read your value with:[ListMIMEHeaders name=myCoolName&exact=T] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: any suggestions for creating a multi-lingual site? (Therio, Dale 1999)
  2. Re: any suggestions for creating a multi-lingual site? (Christer Olsson 1999)
  3. Re: any suggestions for creating a multi-lingual site? (Nicolas Verhaeghe 1999)
  4. Re: any suggestions for creating a multi-lingual site? (Michael O Shea 1999)
  5. Re: any suggestions for creating a multi-lingual site? (Therio, Dale 1999)
  6. Re: any suggestions for creating a multi-lingual site? (Michael O Shea 1999)
  7. Re: any suggestions for creating a multi-lingual site? (Therio, Dale 1999)
  8. any suggestions for creating a multi-lingual site? (Therio, Dale 1999)
  9. Re: any suggestions for creating a multi-lingual site? (Jesse Williams Proudman 1999)
> > As I would prefer not to pass the langauge choice in the URL >(trying to keep > > the URLs as clean as possible) it would seem that I need to read the cookie > > on each page. Having never worked with cookies before, is there a > > performance penalty to doing this? Or is the cookie in memory once it is > > read the first time? > >Use the headers. You have 40 of them and you can even stock more than one >variable in each of them, if you have the technique (that is not that hard). > >You can stock the cart value in a cookie. You can also stock other variables >in different cookie. Cookies are usually retrieved by the browsers at >startup and there should be no performance penalty. Only problem: what if >somebody does not allow cookies to be set?A cool way to pass things is to use the MIME headers, which you can do with a combo of [setmimeheader] and [listmimeheaders].On page one (where you would set your cookie), set a MIME header:[SETMIMEHEADER name=myCoolName&value=myValue]On the next page read your value with:[ListMIMEHeaders name=myCoolName&exact=T] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Christer Olsson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

More on the email templates (1997) Bug Report, maybe (1997) FYI: virus alert (1996) Showing unopened cart (1997) Release of 2.01? (1997) foreign languages, email, webcat (1998) Maybe Off Topic -- OS X/UNIX Shell Scripts? (2003) [OT] Startin' sumthin' again - Python, anyone tried it? (2006) Credit card processing - UK (1997) Forms Search Questions (1997) Stumpted Again (1997) Clearly.home (1998) Wierd display error.... (2004) FYI: virus alert (1996) Exclamation (2002) [WebDNA] An unknown error occured // Deadlock avoided (2011) Problems getting parameters passed into email. (1997) Checkboxes (1998) what's wrong with this picture (2006) Help! WebCat2 bug (1997)