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:
FTP upload TCP Connect (2003)
100% sorry about that (1998)
Country & Ship-to address & other fields ? (1997)
Searching for Email Address (2004)
Unexpected comparison behavior change in 4.5.1 (2003)
[OT] (waaaay OT) my photo (2004)
WebCat B13 Mac CGI -- Frames question (1997)
process SSI (1998)
AppleScript: Tell application:app location? (1998)
Wireless WebDNA available today! (2000)
Search Question (2000)
Major Security Hole (1998)
WebCatalog Technical Reference (1997)
Updating fields from different platforms (1998)
PIXO (1997)
Multiple catalog databases and showcart (1997)
orderfile and setlineitems (1998)
WebCat for Unix?? (1997)
multi condition with showif (2005)
Members register & gain access system (1998)