--- sql-editor.js 2009/04/18 14:18:48 22 +++ sql-editor.js 2009/04/18 23:14:41 23 @@ -86,7 +86,14 @@ .removeClass('changed') .attr('disabled', 1); - $.get('', { lookup_col: column }, function(data,textStatus) { + var where_parts = []; + $('input[name=where_parts]').each(function(){ if (this.checked) where_parts.push(this.value) }); + var args = { + lookup_col: column, + where_parts: where_parts, + }; + console.debug( 'get', args ); + $.get('', args, function(data,textStatus) { console.debug( data, textStatus ); l.addClass('changed'); l.html( data );