Skip to content

Instantly share code, notes, and snippets.

git remote add -f eCSStender git://github.com/easy-designs/eCSStender.js.git
<form id="news_subscribe" method="post" action="http://oi.vresp.com/index.html">
<fieldset>
<legend><span>Sign Up for our Newsletter</span></legend>
<p>
<label for="news_email">E-mail address</label>
<input type="text" id="news_email" name="email_address" maxlength="255" />
<button type="submit" value="Join Now" id="news_submit">Join Now</button>
<input type="hidden" name="fid" value="XXXXXXXXXX" />
<input type="hidden" name="first_name" value="" />
<input type="hidden" name="last_name" value="" />
// fix empty alt attributes
extended_valid_elements : 'img[src|alt=|title|class|id|style|height|width]',
verify_html : true,
FunctionHandler.register(
['home'],
function(){
alert("I'm gonna run some code here.");
});
// …
for (var i=0; i<opts.length; i++) {
var li = document.createElement('li');
var txt = document.createTextNode(opts[i].text);
li.appendChild(txt);
li.selIndex = opts[i].index;
li.selectID = obj.id;
li.onclick = function() {
setVal(this.selectID, this.selIndex);
selectMe(this);
<select id="something" name="something">
<option value="1">This is option 1</option>
<option value="2">This is option 2</option>
<option value="3">This is option 3</option>
<option value="4">This is option 4</option>
<option value="5">This is option 5</option>
</select>
@easy-designs
easy-designs / gist:309084
Created February 19, 2010 19:29
Code samples for Select Something New, Part 2
function selectReplacement(obj) {
// …
// iterate through them to look for the selected one
for (var i=0; i<opts.length; i++) {
// create a variable to store the selected option
var selectedOpt;
// check for the selected option (defaults to the first option)
if (opts[i].selected) { // this option is selected
// store the option's position in the array
selectedOpt = i;
# FastCGI
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc
FastCgiServer /var/www/demo/public/dispatch.fcgi
-initial-env RAILS_ENV=development -processes 1 -idle-timeout 60
#FastCgiServer /var/www/demo/public/dispatch.fcgi
-initial-env RAILS_ENV=production -processes 1 -idle-timeout 60
</IfModule>
<VirtualHost *>
export PATH="$PATH:/usr/local/apache/bin"
<table>
<thead>
<tr>
<th>Event Date</th>
<th>Event Title</>
</tr>
</thead>
<tbody>
<?php
// Define colors for the alternating rows