1. Euphoria and JScript
- Posted by euman at bellsouth.net Jun 18, 2003
- 388 views
--Alt-Boundary-28290.6320343 Content-description: Mail message body Hello all, Stupid Question but how could I convert JScript such as this: function CalculateBrowserResolution() { BrowserX = document.body.clientWidth; BrowserY = document.body.clientHeight; return true; } into Euphoria code that will work from my server to obtain client info and utilize the variables as I see fit ??? Euman --Alt-Boundary-28290.6320343 Content-type: text/html; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body <?xml version="1.0" ?><html> <head> <title></title> </head> <body> <div align="left"><font face="Arial"><span style="font-size:10pt">Hello all,</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">Stupid Question but how could I convert JScript such as this:</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">function CalculateBrowserResolution()</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">{</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> BrowserX = document.body.clientWidth;</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt"> BrowserY = document.body.clientHeight;</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt"> return true;</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">}</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">into Euphoria code that will work from my server to obtain client info</span></font></div> <div align="left"><font face="Arial"><span style="font-size:10pt">and utilize the variables as I see fit ???</span></font></div> <div align="left"><br/> </div> <div align="left"><font face="Arial"><span style="font-size:10pt">Euman</span></font></div> --Alt-Boundary-28290.6320343--
2. Euphoria and JScript
- Posted by euman at bellsouth.net Jun 18, 2003
- 388 views
Hello all, Stupid Question but how could I convert JScript such as this: function CalculateBrowserResolution() { BrowserX = document.body.clientWidth; BrowserY = document.body.clientHeight; return true; } into Euphoria code that will work from my server to obtain client info and utilize the variables as I see fit ??? Euman
3. Re: Euphoria and JScript
- Posted by "Carl W." <euphoria at cyreksoft.yorks.com> Jun 18, 2003
- 388 views
euman at bellsouth.net wrote: > > > Hello all, > > Stupid Question but how could I convert JScript such as this: > > function CalculateBrowserResolution() > { > BrowserX = document.body.clientWidth; > BrowserY = document.body.clientHeight; > return true; > } At the bottom of your HTML form try adding the following: <script language="JScript"><!-- document.write( "<input type=hidden name=clientWidth value=" + document.body.clientWidth + ">\n" + "<input type=hidden name=clientHeight value=" + document.body.clientHeight + ">\n" ) // --> </script> This (IIRC) should pass the relevant values from JScript to your CGI script without anything being visible on the webpage. HTH, Carl -- [ Carl R White == aka () = The Domain of Cyrek = ] [ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]