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
function showBlock(element_id, element) {
dropdown_tracker = element_id //using global variable to track dropdown
...
JavaScript Using global variable for c...
The following is the code I...
Ruby On Return from function within...
by ttdavett.myopenid.com,
April 29, 2009 06:16
I've taken your advice to l...
Ruby On Return from function within...
by ttdavett.myopenid.com,
April 27, 2009 19:29
Yea, I tried removing "retu...
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...
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...
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...
$('login_email').observe('click', function(event){
element = event.element()
element.value = '';
...
JavaScript Prototype form functions
I'm thinking there's gotta ...
def update
respond_to do |format|
if logged_in_user.spec.nil?
...
Ruby using update for new and ex...
I have a rails specific que...
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...
@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...
if @events != nil
@events.each do |event|
if @recurrents != nil
...
Ruby superfluous if statements
I'm pretty sure theres a be...
<%= 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...
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...
Ruby On two for loops cleanup?
by ttdavett.myopenid.com,
July 31, 2008 04:27
This does not work, the da...
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?
times is an array of dateti...
Yea, I have already started...