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

Is there a safer way to-do ...

642d333608cc3483f64dba38cb81bdd2 Talk
1
2
3
;(function($) {
        $.fn.extend(
...

JavaScript filter selectbox with 3000+...

by akarzim, February 03, 2010 23:05, 2 refactorings, tagged with jquery, dom, speed, select

This is a little jQuery scr...

0018abed2b5e8b460993ed915adc0d11 Talk
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...

56c449f1a408dba893793094599f7fb5 Talk
1
<%= f.select :something, 1.upto(10) do |i| i end %>

Ruby Select tags

by sfusion.myopenid.com, April 02, 2009 11:01, 5 refactorings, tagged with select, rails, short

I find myself doing this a ...

4f5d54213efb6502baab202f3fb2f09e Talk
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...

by zsolt.botykai.org, March 03, 2009 16:42, 1 refactoring, tagged with sql, join, self, select

Actually it's not PHP. And ...

F59c10b458e4212b941ba215422266ce Talk
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...

Bfca16459c82a7836c3d5c8d79f0b640 Talk
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...

832ed6ace46d61032151f4e1864c057f Talk