Re: [WebDNA] How to get a screen size

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103739
interpreted = N
texte = --Apple-Mail-1--653354409 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed My problem is to set up cookie with information coming from the =20 client before it start loading the page. So I shall need to do it from the client side, so Javascript I =20 suppose, but I thought that I could setup cookie with JS before the =20 [redirect url] ould hit. So it is not a Webcatalog problem, but I have no idea how to sort =20 this out Lawrence Le 4 oct. 09 =E0 17:04, Govinda a =E9crit : >> Hi, >> >> This is a sort of javascript problem, but it get into my feet with =20= >> webdna. >> I have a first page that set cookies using webdna and then =20 >> [redirect url] >> I wish to get the screen size information in order to selectwhat =20 >> size should be background image. >> I'm a nubbie to jscript, but I managed to found how to get the =20 >> screen size and to set it as a cookie, but I can't set that cookie =20= >> 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 =20 > [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] =20 > and [redirect] on the same page. In those cases people sometimes =20 > used [returnraw] as a workaround to then be able to > Set-Cookie: > and > Location: > > -Govinda > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?=20 > page=3Dtopics&category=3D288 --Apple-Mail-1--653354409 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 My problem is to set up cookie with information coming from the client = before it start loading the page.
So I shall need to do it from the = client side, so Javascript I suppose, but I thought that I could setup = cookie with JS before the [redirect url] ould hit.
So it is = not a Webcatalog problem, but I have no idea how to sort this = out
Lawrence


Le 4 oct. 09 =E0 17:04, Govinda a = =E9crit :

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
---------------------------------------------------------
This message is sent to you because you are = subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l= ist/talk@webdna.us
old archives: http://dev.webdna.us/TalkLi= stArchive/
Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288=

= --Apple-Mail-1--653354409-- 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)
--Apple-Mail-1--653354409 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed My problem is to set up cookie with information coming from the =20 client before it start loading the page. So I shall need to do it from the client side, so Javascript I =20 suppose, but I thought that I could setup cookie with JS before the =20 [redirect url] ould hit. So it is not a Webcatalog problem, but I have no idea how to sort =20 this out Lawrence Le 4 oct. 09 =E0 17:04, Govinda a =E9crit : >> Hi, >> >> This is a sort of javascript problem, but it get into my feet with =20= >> webdna. >> I have a first page that set cookies using webdna and then =20 >> [redirect url] >> I wish to get the screen size information in order to selectwhat =20 >> size should be background image. >> I'm a nubbie to jscript, but I managed to found how to get the =20 >> screen size and to set it as a cookie, but I can't set that cookie =20= >> 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 =20 > [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] =20 > and [redirect] on the same page. In those cases people sometimes =20 > used [returnraw] as a workaround to then be able to > Set-Cookie: > and > Location: > > -Govinda > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?=20 > page=3Dtopics&category=3D288 --Apple-Mail-1--653354409 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 My problem is to set up cookie with information coming from the client = before it start loading the page.
So I shall need to do it from the = client side, so Javascript I suppose, but I thought that I could setup = cookie with JS before the [redirect url] ould hit.
So it is = not a Webcatalog problem, but I have no idea how to sort this = out
Lawrence


Le 4 oct. 09 =E0 17:04, Govinda a = =E9crit :

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
---------------------------------------------------------
This message is sent to you because you are = subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l= ist/talk@webdna.us
old archives: http://dev.webdna.us/TalkLi= stArchive/
Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288=

= --Apple-Mail-1--653354409-- Lawrence Banahan

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:

Search returns all, not 20 (1997) ExpireDate Zero or Greater than Today (2006) Online reference (1997) Sendmail Excel attachment (2003) Robert Minor duplicate mail (1997) [WebDNA] Correct returnraw syntax? (2011) MacOS X 10.1 Upgrade Error (2001) Email Formatting and Encryption (1998) Roundup function? (1997) Possible Bug in 2.0b15.acgi (1997) Grouping Fields in Context (1999) [WebDNA] WebDNA Not Sending Email (2009) Help needed! (1998) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [isfile] ? (1997) ReadDateFormat bug in 3.x (1998) serial number generation (1997) countdown to date (2003) did I miss anything (1997) [WebDNA] Screen Resolution - detection & redirect (2012)