I've been thinking on the same subject, but haven't had time to play with
it yet.
What about using FORM element values (value=' 'or text or hidden) for a
limited means of passing variables. Both HTML (the JS DOM) and CF access
that data directly at different times, but maybe on different sides of the
server. var X = form.element.value should pick up a variable set by CF
..... form.element.value = 'X' should set it for CF to grab on the next
trip to the server. Is there a better way to do this?
What about passing data in structures or arrays. Anyone given that any
thought?
I did see a piece somewhere on using WDDX to pass variables to JS or vice
versa, but if it still takes a trip to the server to do it, why not just
use the FORM elements?
Dru
At 20:59 9/1/2000 -0400, Peter Theobald wrote:
>Since Javascript runs only on the client and Cold Fusion runs only on the
serve, you have to pass the JavaScript variables to a CFM page through a
URL request as URL or Form variables.
>
>At 05:26 PM 9/1/00 -0400, Bill Davidson wrote:
>>This is a multi-part message in MIME format.
>>
>>------=_NextPart_000_018F_01C01439.B56720E0
>>Content-Type: text/plain;
>> charset="iso-8859-1"
>>Content-Transfer-Encoding: quoted-printable
>>
>>Does anyone know of an easy method to get Javascript variable =
>>information to CF variables? Or more specifically how to get the =
>>browser dimensions/screen resolution into a CF variable? Is WDDX the =
>>answer?
>>
>>TIA,
>>Bill
>>/intraget
>>
>>------=_NextPart_000_018F_01C01439.B56720E0
>>Content-Type: text/html;
>> charset="iso-8859-1"
>>Content-Transfer-Encoding: quoted-printable
>>
>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>>Does anyone know of an easy method to = get=20 Javascript variable
information to CF variables? Or more = specifically how=20 to get the
browser dimensions/screen resolution into a CF = variable? Is=20 WDDX the
answer?
>>
>>TIA,
>>Bill
>>/intraget
>>
>>------=_NextPart_000_018F_01C01439.B56720E0--
>>
>>--------------------------------------------------------------------------
----
>>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.
>
>
>---------------------------------------------------------------------------
>Peter Theobald, Chief Technology Officer
>LiquidStreaming http://www.liquidstreaming.com
>[EMAIL PROTECTED]
>Phone 1.212.545.1232 Fax 1.212.679.8032
>
>---------------------------------------------------------------------------
---
>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.