jQuery.fn.restForm = function(type, options) {
  var defaults = {
    method: 'post',
...

JavaScript On RESTful jQuery PUT/DELETE l...

by Simo Niemelä, May 27, 2009 17:38 Star_fullStar_fullStar_fullStar_full
23132e1aa8457e11b243a43b578d51dc Talk
// form fields  
var address = $("#address");
var zip = $("#zip");
...

JavaScript On Perform AJAX request when t...

by Simo Niemelä, February 16, 2009 09:52
23132e1aa8457e11b243a43b578d51dc Talk
$('.answer_filter').change(function() {
  var filter = $(this);
  var select = $('#' + filter.attr('id'));
...

JavaScript On Get the id of a <select&...

by Simo Niemelä, January 27, 2009 18:05 Star_fullStar_fullStar_full
23132e1aa8457e11b243a43b578d51dc Talk
jQuery.fn.checkNext = function() {
  if (this.is(':last-child') && this.is(':selected')) {
    this.attr('selected', false).parent().children(':first').attr('selected', true);
...

JavaScript On Check next option in select...

by Simo Niemelä, January 25, 2009 21:10 Star_fullStar_fullStar_fullStar_fullStar_full
23132e1aa8457e11b243a43b578d51dc Talk
<?php

function array_to_list($array, $separator = ',')
...

PHP On From array to list

by Simo Niemelä, January 25, 2009 15:16 Star_fullStar_fullStar_fullStar_full
23132e1aa8457e11b243a43b578d51dc Talk
category_id = category_name.split("-").last

Ruby On Ugly RegEx Accessor

by Simo Niemelä, December 18, 2008 14:01
23132e1aa8457e11b243a43b578d51dc Talk
def capitalize_args(bind)
  eval("local_variables", bind).each do |var|
    var = eval(var, bind)
...

Ruby On Bindings on caller

by Simo Niemelä, November 22, 2008 11:12
23132e1aa8457e11b243a43b578d51dc Talk
<?php

function remove_http($url)
...

PHP On remove http from url string

by Simo Niemelä, November 11, 2008 10:16 Star_fullStar_fullStar_fullStar_full
23132e1aa8457e11b243a43b578d51dc Talk
public boolean hasOwnerShip()
...

Java On Java IRC Bot

by Simo Niemelä, November 04, 2008 11:46
23132e1aa8457e11b243a43b578d51dc Talk
dates = {
  :mon => '9:00 - 20:00',
  :tue => '9:00 - 20:00',
...

Ruby On Open hours grouping

by Simo Niemelä, October 15, 2008 17:00
23132e1aa8457e11b243a43b578d51dc Talk