Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function saveGlobalValToSession(name,val){
- //save state here.
- //stringify if the value passed is an array or an object.
- if (typeof(val) === 'object'){
- val=JSON.stringify(val);
- };
- jQuery.ajax({
- url : 'assets/CFC/session.cfc?method=saveState',
- type : 'POST',
- data : {
- name: name,
- val : val,
- cfctoken: Globals.get('cfctoken')
- },
- dataType: 'json'
- }); //ajax
- };
Advertisement
Add Comment
Please, Sign In to add comment