so here's what I'm thinking...

Jan 11

The Big Lebowski - Every Single Fucking Dude (by TannerStauss)


Dec 9

Ice Cube Celebrates Charles and Ray Eames (by pacificstandardtime)


Dec 8

Doodling in Math Class: Triangle Party (by Vihart)


Dec 7

Oct 14

Ron Swanson and Fine Woodworking on Late Show With David Letterman


Sep 25

Muppet Show Pitch (by lordreginaldwhore)


Jul 18

The Cute Show - SLOTHS!


Jun 17

Go the F*ck to Sleep - read by Samuel L. Jackson.flv (by tnbbc)


Jun 7

ExtJS Grid roweditor - how to save your changes

It took a little while to figure out how to send my changes through an ajax request to my backend database page so I figured I’d post the code I used.

When you define your grid you then add RowEditing as a plugin. Add an edit listener to fire your function after the user clicks the “update” button. In the function I send a standard ajax request supplying the url and whatever kind of success function you want. The part that stumped me was because I couldn’t see any data being passed. I realized I had to supply the params option and give it the getChanges that have happened to the supplied record.

issuesgrid = {
	title: 'All Issues',
	plugins: [
		Ext.create('Ext.grid.plugin.RowEditing', {
			clicksToEdit: 2,
			listeners: {
				edit: function(e){
					Ext.Ajax.request({
						url: 'index.php/issue/update/' + e.record.get('reportID'),
						params: e.record.getChanges(),
						success: function(){}
					})
				}
			}
		})
	],
	columns: [
		{dataIndex: 'reportID', text: 'ID'},
...

Hope this saves someone some time.


Jun 2

Leonard Nimoy mixed with The Big Lebowski. Pure awesome.

Bruno Mars - The Lazy Song [Official Alternate Version] (by ElektraRecords)


Page 1 of 34