Coda Clips

Drupal: link

l('label', 'path', array('query' => 'destination=node'));

Added to by David Reed

Install Clip


Drupal: set message

drupal_set_message('message', 'status');

Added to by David Reed

Install Clip


Include

<?php
include(example.php)
?>

Added to by Chris O'Donnell

Install Clip


Sitemap XML

<?xml version=”1.0” encoding=’UTF-8’?> 
<urlset xmlns=’//www.sitemaps.org/schemas/sitemap/0.9’> 
	<url> 
		<loc>//www.site.com/</loc> 
		<lastmod>2008-11-04</lastmod> 
		<changefreq>monthly</changefreq> 
		<priority>0.9</priority> 
	</url> 
</urlset>

Added to by Nikos Mouratidis

Install Clip


Clearing div

.clearing {clear:both; height:0; overflow:hidden; margin:-1px 0 0 0;}

Added to by Mark Evans

Install Clip


Get Value of Select and Load external file to div (jQuery)

$(document).ready(function(){
   $('#contactFormSelect :selected').val();
       $("#contactFormSelect").change(function(){
           $('#formLoader').load($('#contactFormSelect').val());
       });
});

Added to by Mark Evans

Install Clip


Textarea Character Count (jQuery)

// controls character input/counter
$('textarea#body').keyup(function() {
var charLength = $(this).val().length;
// Displays count
$('span#charCount').html(charLength + ' of 250 characters used');
// Alerts when 250 characters is reached
if($(this).val().length > 250)
$('span#charCount').html('<strong>You may only have up to 250 characters.</strong>');
});

Added to by Mark Evans

Install Clip


AMFPHP class

<?php
class service {
	public function __construct() {
	}
	/**
	 * description
	 * @returns value
	 */
	function name() {	
	}
}
?>

Added to by christian

Install Clip


Sponsored Links: