Profile
Achievement
 
                     
    
                brandonjp's Recent SnippetsTagged js
- All /
 « Prev 1 Next »
Regular Expression to find native Javascript console and AngularJS $log log warn or info that are NOT comments / commented out
        
        
        
            1 
        
        
            3659 
        
                    posted 9 years ago by brandonjp
            
            JavaScript
        
            JS - onclick function to insert text characters symbol into text input field or textarea at the cursor caret location position  
        
                    // big thanks to these tips for giving me code to steal:  http://bit.ly/bundles/brandonjp/9
/*
 * USAGE:  give your HTML textarea or text input element an ID
 * give your button an onClick="insertThisInThere(text2insert, theInputIDwhereItGoes);"...
        
        
        
            0 
        
        
            3716 
        
                    posted 14 years ago by brandonjp
            Data Types for DB, MySQL, SQLite, PHP, Ruby, Rails, JS, etc. because I forget them sometimes
from Ruby on Rails Guides: Migrations http://bit.ly/hFWjT0
from Rails Migrations http://bit.ly/hI5zpz
        
        
        
            0 
        
        
            1533 
        
                    posted 14 years ago by brandonjp
            
            jQuery
        
            jQuery dynamic loader - load jquery using pure js javascript if jQ is undefined or does not exist  
        
                    
        
        
        
            0 
        
        
            1546 
        
                    posted 15 years ago by brandonjp
            
            jQuery
        
            js javascript browser language detection, get the user\'s browser\'s language preference setting using jquery to detect users br  
        
                    JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
        
        
        
            1 
        
        
            3811 
        
                    posted 15 years ago by brandonjp
            
            jQuery
        
            js - jQuery - jQueryLoader - check if $ is undefined, then load jquery with pure javascript if needed  
        
                    
        
        
        
            0 
        
        
            1562 
        
                    posted 15 years ago by brandonjp