Solved

Referencing ColdFusion session variables in javascript code

Posted on 2008-10-01
2
2,359 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
Comment Utility
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
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now