1 2 3 4
#insert new record if it dosent already exist if !dbh.select_one('SELECT Salenm FROM Auctions Where Salenm LIKE "%' + c.attributes["href"][/....$/] + '%"') dbh.do("INSERT INTO Auctions (Salenm, Date, Location) VALUES (?, ?, 1)", ...
Ruby Insert new record if it dos...
by bain19.myopenid.com,
June 24, 2010 04:33,
1 refactoring, tagged with if, mysql, select, bain19, sql injection
1 2 3
;(function($) { $.fn.extend( ...
JavaScript filter selectbox with 3000+...
This is a little jQuery scr...
1 2 3 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ...
JavaScript Playing with dom
by Denis Jacquemin,
October 24, 2009 21:33,
2 refactorings, tagged with javascript, select, option, prototype
This code works fine, I jus...
1
<%= f.select :something, 1.upto(10) do |i| i end %>
Ruby Select tags
I find myself doing this a ...
1 2 3 4
select rrr.account_number,
summa,
to_char(to_date('19570101', 'YYYYMMDD') + max(rrr.lst_pay_dn),
...
PHP Can I do it without accessi...
Actually it's not PHP. And ...
1 2 3 4
$('.answer_filter').change(function() { var filter = jQuery(this); var select = jQuery('#' + filter.get(0).id); // @TODO find a more appropriate solution ...
JavaScript Get the id of a <select&...
by sebastian.deutsch.myopenid.com,
January 27, 2009 17:19,
2 refactorings, tagged with javascript, jquery, select
I get a change event within...
1 2 3 4
var next = false; for (var i = 0; i < el.options.length; i++) { if (next) { ...
JavaScript Check next option in select...
by Dmitry Polushkin,
January 25, 2009 15:04,
5 refactorings, tagged with select, options, increment, next
Could be written in plain j...
Is there a safer way to-do ...