var DropDown = Class.create({
    initialize: function(date, appt_counter, times, edit_or_add) {
      start_drop_id = "start_drop_" + date + "_" + appt_counter;
...

JavaScript On Using global variable for c...

by ttdavett.myopenid.com, May 19, 2009 18:57

Yea, I have already started...

F677fa685a2cfe8aff31f161062db3d3 Talk
function showBlock(element_id, element) {
    dropdown_tracker = element_id                 //using global variable to track dropdown
...

JavaScript Using global variable for c...

by ttdavett.myopenid.com, May 19, 2009 08:51, 3 refactorings, tagged with javascript, prototype

The following is the code I...

F677fa685a2cfe8aff31f161062db3d3 Talk

Ruby On Return from function within...

by ttdavett.myopenid.com, April 29, 2009 06:16

I've taken your advice to l...

F677fa685a2cfe8aff31f161062db3d3 Talk

Ruby On Return from function within...

by ttdavett.myopenid.com, April 27, 2009 19:29

Yea, I tried removing "retu...

F677fa685a2cfe8aff31f161062db3d3 Talk
def check_appt_conflicts()             
    events_blocked.any? do |event|
      if event.frequency == 'weekly' || self.frequency == 'weekly'
...

Ruby On Return from function within...

by ttdavett.myopenid.com, April 24, 2009 17:01

Thanks for the help everyon...

F677fa685a2cfe8aff31f161062db3d3 Talk
def check_appt_conflicts()
    appointments.each do |appointment|
...

Ruby Return from function within...

by ttdavett.myopenid.com, April 22, 2009 23:36, 10 refactorings, tagged with rails, ruby, function, return

Is there a way to break/esc...

F677fa685a2cfe8aff31f161062db3d3 Talk
def create   
    case params[:event][:kind]
    when "appointment"
...

Ruby Custom validation (ajax/jav...

by ttdavett.myopenid.com, April 21, 2009 22:00, No refactoring, tagged with rails, ruby, validation, ajax, errors

I have a couple of concerns...

F677fa685a2cfe8aff31f161062db3d3 Talk
$('login_email').observe('click', function(event){    
      element = event.element()
      element.value = '';
...

JavaScript Prototype form functions

by ttdavett.myopenid.com, March 27, 2009 00:12, 5 refactorings, tagged with form, prototype, login

I'm thinking there's gotta ...

F677fa685a2cfe8aff31f161062db3d3 Talk
def update
   respond_to do |format|
     if logged_in_user.spec.nil?
...

Ruby using update for new and ex...

by ttdavett.myopenid.com, January 25, 2009 17:42, 2 refactorings, tagged with rails, ruby, update

I have a rails specific que...

F677fa685a2cfe8aff31f161062db3d3 Talk
switch(timeArray[0]){
        case 1: var start_time = '7:00AM ';
...

JavaScript Writing a loop to create a ...

by ttdavett.myopenid.com, December 11, 2008 05:11, 5 refactorings, tagged with switch javascript date time case

I'm wondering if theres som...

F677fa685a2cfe8aff31f161062db3d3 Talk
@appointments_by_day = {}
day_counter = 1
#runt_objects is an array
...

Ruby A hash of arrays (adding to...

by ttdavett.myopenid.com, December 09, 2008 07:04, 3 refactorings, tagged with refactor rails array hash

I am trying to add arrays t...

F677fa685a2cfe8aff31f161062db3d3 Talk
if @events != nil
  @events.each do |event|
    if @recurrents != nil
...

Ruby superfluous if statements

by ttdavett.myopenid.com, August 10, 2008 22:51, 4 refactorings, tagged with rails, ruby, if, else

I'm pretty sure theres a be...

F677fa685a2cfe8aff31f161062db3d3 Talk
<%= link_to image_tag("go_back.png"), user_path(@user) %><%= link_to 'Go Back', user_path(@user) %>

Ruby link_to with an image_tag a...

by ttdavett.myopenid.com, August 06, 2008 08:10, 10 refactorings, tagged with link_to rails ruby image_tag

I have two links side by si...

F677fa685a2cfe8aff31f161062db3d3 Talk
event_times = events.collect { |event| event.date.strftime("%I:%M %p") }
    
    times.each do |time|
...

Ruby On two for loops cleanup?

by ttdavett.myopenid.com, August 01, 2008 08:50

This code doesnt seem to wo...

F677fa685a2cfe8aff31f161062db3d3 Talk

Ruby On two for loops cleanup?

by ttdavett.myopenid.com, July 31, 2008 04:27

This does not work, the da...

F677fa685a2cfe8aff31f161062db3d3 Talk
times.each do |time|
      events.each do |event|
        if time.strftime("%I:%M %p") == event.datetime.strftime("%I:%M %p")
...

Ruby two for loops cleanup?

by ttdavett.myopenid.com, July 31, 2008 00:11, 7 refactorings, tagged with rails, ruby, hash, array

times is an array of dateti...

F677fa685a2cfe8aff31f161062db3d3 Talk