vchris Posted October 16, 2007 Share Posted October 16, 2007 I have a JavaScript list which is kinda huge. There's about 3 level to this list. I added a function to minize and maximize a list on click. I've been asked if there is a way to "remember" which list is maximized so when you do a back it'll stay opened. All I can think of is the use of cookies but in my organization we have standards that stops me from using cookies. So is there any other way I could use to do this "remember" feature? I use ColdFusion also if it helps. Link to comment Share on other sites More sharing options...
aspnetguy Posted October 16, 2007 Share Posted October 16, 2007 The only other way would be to store that information in a CF session. Standards are very important in organizations but I find that a strange rule at least for minor features such as what you mentioned. Personally I would view it that same as JavaScript. They should be used to enhance the application but the application would still be fully functional with cookies blocked. Link to comment Share on other sites More sharing options...
vchris Posted October 16, 2007 Author Share Posted October 16, 2007 ok but then how would I use a cf session variable with js? Link to comment Share on other sites More sharing options...
aspnetguy Posted October 16, 2007 Share Posted October 16, 2007 I don't know much CF but I assume it works much the same as others do. Here is how you would do it in ASP.Net and PHP (assume the session has already been saved , probably through AJAX).ASP.Net var jsvar = "<%= Session["YourSession"].ToString() %>"; PHP var jsvar = "<?= $_SESSION["YourSession"] ?>"; Link to comment Share on other sites More sharing options...
vchris Posted October 16, 2007 Author Share Posted October 16, 2007 ahhh! of course. That's one way of doing it. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.