Thanx Patrick,
I finaly got it to work:
I put the CF variables in an <INPUT type=text>
Then I used JS to get these values
Regards -
Frank
________________________________
From: Patrick Whittingham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 6:45 PM
To: CF-Talk
Subject: Re: CF -> _javascript_ variables
Can't you use the innerHTML instead?
Pat
<div id="x" ></div>
<script>
x.innerHTML="3432432432";
</script>
----- Original Message -----
From: Frank Dewey <[EMAIL PROTECTED]>
Date: Tue, 31 Aug 2004 13:13:53 -0500
Subject: CF -> _javascript_ variables
To: CF-Talk <[EMAIL PROTECTED]>
Wrong subject
________________________________
From: Frank Dewey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 1:10 PM
To: CF-Talk
Subject: RE: CFQuery
Hello all,
In my page, clicking on a name brings up another window where you can
edit their information (their address is shown below their name). The
addressID for each address is also stored in a variable (addressIDList).
Clicking on a button gets the the current information from the database
- the processing is done in an iframe and addressIDList is passed in the
URL.
I would like to have _javascript_ write this new information to the
screen. I do not want the entire screen to be reloaded though, just
certain information. The proper text is surounded by (for the city and
state text):
<span id=city#addressid#>...</span>
<span id=state#addressid#>...</span>
...
Everything works like it should except that I cannot get _javascript_ to
update the page because of some syntax errors. I am trying to use
JS.innertext to write the new information (i.e. for the city):
<cfoutput>
<cfloop list="#url.addrIDList#" index="addressID">
<script>
parent['city'+#addressid#].innerText =
#evaluate(city&addressid)#;
...
</script>
</cfloop>
</cfoutput>
What is wrong with this syntax? What should it be instead?
I appreciate any help...
Thank you -
Frank
________________________________________________________________
________________________________
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- CF -> Javascript variables Frank Dewey
- Re: CF -> Javascript variables Patrick Whittingham
- Frank Dewey