Re: [WebDNA] How to get a screen size

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103738
interpreted = N
texte = > Hi, > > This is a sort of javascript problem, but it get into my feet with > webdna. > I have a first page that set cookies using webdna and then [redirect > url] > I wish to get the screen size information in order to selectwhat > size should be background image. > I'm a nubbie to jscript, but I managed to found how to get the > screen size and to set it as a cookie, but I can't set that cookie > even when it comes before the [redirect url]. > As any one got an idea how I could get this work... > Thanks in advance > Lawrence do you mean to say that you can [setcookie] fine, and also [redirect] fine, but just not both? if so, then - what version of webdna are you using? if I remember right, some (older) versions could not [setcookie] and [redirect] on the same page. In those cases people sometimes used [returnraw] as a workaround to then be able to Set-Cookie: and Location: -Govinda Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] How to get a screen size (Scott Walters 2009)
  2. Re: [WebDNA] How to get a screen size (Lawrence Banahan 2009)
  3. Re: [WebDNA] How to get a screen size ("scott@ideassoftware.com" 2009)
  4. Re: [WebDNA] How to get a screen size (System Administrator 2009)
  5. Re: [WebDNA] How to get a screen size (Govinda 2009)
  6. Re: [WebDNA] How to get a screen size (Lawrence Banahan 2009)
  7. Re: [WebDNA] How to get a screen size (Govinda 2009)
  8. [WebDNA] How to get a screen size (Lawrence Banahan 2009)
> Hi, > > This is a sort of javascript problem, but it get into my feet with > webdna. > I have a first page that set cookies using webdna and then [redirect > url] > I wish to get the screen size information in order to selectwhat > size should be background image. > I'm a nubbie to jscript, but I managed to found how to get the > screen size and to set it as a cookie, but I can't set that cookie > even when it comes before the [redirect url]. > As any one got an idea how I could get this work... > Thanks in advance > Lawrence do you mean to say that you can [setcookie] fine, and also [redirect] fine, but just not both? if so, then - what version of webdna are you using? if I remember right, some (older) versions could not [setcookie] and [redirect] on the same page. In those cases people sometimes used [returnraw] as a workaround to then be able to Set-Cookie: and Location: -Govinda Govinda

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:

SSL (1998) Opinion: [input] should be called [output] ... (1997) Re:WebCatalog f2 Installation (1997) [WebDNA] Can webDNA be forced to be able to read ANY file in ANY folder in a webroot in =?UTF-8?Q?CentOS=3F?= (2018) $Replace with [founditems] (1997) [BULK] [WebDNA] New Webdna framework ! ... (addresses some initial concerns... coming into the design of a large project) (2012) NEW 4.X BUG?!?!?!? - WAS: The force has left me. (2002) still having shipCost.db Problem (1997) security (1997) upgrade? (1997) [ModDate] & [ModTime] ? (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) RE: Answer: WebDelivery downloads alias, not original ? (1997) Simple Page (2000) [WebDNA] Test (2009) CMS - Formatting Content (2004) Size limit for tmpl editor ? (1997) Removing [showif] makes a big difference in speed (1997) Pithy questions on webcommerce & siteedit (1997) RE: MacFinder -- a new WebDNA web site (1998)