Solved

Referencing ColdFusion session variables in javascript code

Posted on 2008-10-01
2
2,383 Views
Last Modified: 2012-05-05
How do I reference the coldFusion session variable in javascript. My attempt is shown below.
<script type="text/javascript">

	function handleClick(OffID, SeqID){
 

		//store the selOffers and selSeqOffers in session

		Session.selOffers = selOffers;

		Session.selSeqOffers= selSeqOffers;}

	</script>

Open in new window

0
Comment
Question by:onaled777
2 Comments
 
LVL 18

Assisted Solution

by:Plucka
Plucka earned 200 total points
ID: 22612886
You can't CF session variables are stored on the server.

You could do it via ajax call to a cfc, but not directly.
0
 
LVL 19

Accepted Solution

by:
erikTsomik earned 300 total points
ID: 22613615
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now