Created
          September 16, 2011 13:22 
        
      - 
      
- 
        Save bittersweetryan/1222121 to your computer and use it in GitHub Desktop. 
    Injecting Dynamic ColdFusion Into Your JavaScript
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var myData = { | |
| property1 : "", | |
| property2 : "", | |
| property3 : "", | |
| method1 : function(element){ | |
| element.html(this.property1); | |
| }, | |
| changeSelect : function(){ | |
| $("#select1").change(function(){ | |
| this.method1($("#property1")); | |
| }); | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment