thanks Ron.  This looks like it should work.

-Bill
/intraget
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 03, 2000 12:07 PM
Subject: RE: Javascript -> Cold Fusion.


> > I thought I'd share my current solution to the 'getting the screen
> > resolution problem' I posted a few days ago.  Thanks to Peter
> > & Sharon...
> >
> > index.cfm:
> > <script language="JavaScript">
> > function SetRez (form)
> > {
> > document.form.xrez.value = window.screen.width;
> > document.form.yrez.value = window.screen.height;
> > }
> > </script>
> > ...
> > <form method="post" name="form"
> > action="http://www.deliveru.com/public/index.cfm"
> > onsubmit="javascript:SetRez(this.form);">
> > ...
> >
> > Then in my app_globals, I just test the existance of the form
> > VARs and set
> > them up in client scope.  It is not as good as I would like
> > it to be, since
> > I still have to do this form submit, but it works.  If anyone
> > can suggest a
> > way to pass it via a URL instead, it would make me very happy. ;)
>
> Bill,
>
> This is untested, but should get you close. Put it in your app_globals
> (watch for line wrap):
>
> <cfif NOT isDefined("Session.xrez")>
>  <cfif NOT isDefined("URL.xrez")>
>   <script language="JavaScript"><!--
>      var myURL = "http://www.deliveru.com/public/index.cfm?"
>      myURL += "xrez=" + window.screen.width;
>      myURL += "&yrez=" + window.screen.height;
>      self.location.href = myURL;
>     // -->
>   </script>
>  <cfelse>
>   <cfset Session.xrez=URL.xrez>
>   <cfset Session.yrez=URL.yrez>
>  </cfif>
> </cfif>
>
> Ron Allen Hornbaker
> President/CTO
> Humankind Systems, Inc.
> http://humankindsystems.com
> mailto:[EMAIL PROTECTED]
>
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to