anchor.diff:      });
       
       $('tr.trip a[data-remote]').live('ajax:success', function(e, data, status, xhr){
  +      scroll_positions = {scrollX: $(window).scrollLeft(), scrollY: $(window).scrollTop()};
  +      // console.log ('scroll_positions after setting', scroll_positions);
  +      replace_index_state(); // make sure the scrollstate is recorded
         push_edit_state($(this).attr("href"));
         load_edit_trip(data.form);
       });
  
positive.code:                 table.append(row);
                })
                $("tr:odd").addClass("odd");
              }
            );
          },
  
negative.code:           $.getJSON('<%= trips_path :json %>',
              calendar_range,
              function(data, textStatus, jqXHR){  
                // console.log ('scroll_positions in getJSON', scroll_positions);
                
                // we probably didn't have the right range before, so now  we should update the state
                if ( on_trip_index() ) replace_index_state();
                            
                callback(data.events);              
  
  