Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Other Programming Languages
|
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 6th, 2006, 11:52 PM
Authorized User
 
Join Date: Nov 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing Session Variables in javascript

How can I access the Session variables through javascript.

Subhendu De
subhendude@gmail.com
Software Developer
New Delhi, India
__________________
Subhendu De
subhendude@gmail.com
Software Developer
New Delhi, India
Reply With Quote
  #2 (permalink)  
Old November 8th, 2006, 11:15 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How do you mean? Session variables will be available to the server side code only. If your server side code is written in Javascript it will have access to the session variables, however, if you mean client side javascript the session variables will not be directly accessable to it. To make them available to your Javascript in that case you will have to place them into the HTML dynamically, either in hidden inputs or in Javascript variables.

Woody Z http://www.learntoprogramnow.com
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing server variables badgolfer Classic ASP Professional 2 October 23rd, 2007 03:11 AM
Dynamically accessing ASP variables jordan147 Classic ASP Basics 1 May 21st, 2007 02:09 AM
accessing variables in templates austinf XSLT 1 May 4th, 2006 03:16 AM
Session Variables testsubject Visual Studio 2005 8 March 8th, 2006 04:26 PM
Accessing Session variables from custom class mohyneenm ASP.NET 1.0 and 1.1 Professional 2 January 26th, 2005 07:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.