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> Lawrencedo 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 toSet-Cookie:andLocation:-Govinda
Associated Messages, from the most recent to the oldest:
> 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> Lawrencedo 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 toSet-Cookie:andLocation:-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:
Searchable WebCat (etc.) Docs ? (1997)
Global Function (2003)
errormessages.db (1997)
WebCat2 several catalogs? (1997)
Bad suffix error (1997)
Help name our technology! (1997)
international time (1997)
TCP Connect (2000)
flushdatabases (1997)
WebCat2: Found Items syntax, etc. (1997)
Programmer Needed (1998)
database size? (1997)
Re[2]: Enhancement Request for WebCatalog-NT (1996)
Using [showif] within [lineitems] [code fragment] (2000)
emailer (1997)
Checkboxes and neSKUdata=[blank] (1998)
append=T problem (1998)
[WebDNA] WebDNA on LiveCD ... (2008)
Possible to reset Linux file permissions w/in webcat [shell] ? (2000)
Getting Rid of Multiple Returns (2001)