<\/p>/g;
redir_link = redir_link_pattern.exec(response);
redir_link = redir_link ? redir_link[0] : '';
//alert('redir_link: [' + redir_link + ']');
error_message_pattern = /\s*(.+)\s*<\/p>/g;
while (message_part = error_message_pattern.exec(response)) {
//alert('2 message_part[0]: ' + message_part[0]);
if (message_part[0] != redir_link) {
message += message_part[0];
}
}
return message;
}
return false;
},
remove_class_elements: function(parent_element, class_name) {
var class_elements;
if (class_name) {
class_elements = infiniteScroll1.getElementsByClass(class_name, '', parent_element);
//alert('class_elements.length: ' + class_elements.length);
if (class_elements.length > 0) {
for (var i = 0; i < class_elements.length; i++) {
class_elements[i].parentNode.removeChild(class_elements[i]);
}
}
}
},
continuous_scroll: function() {
//alert('continuous_scroll');
if (infiniteScroll1.ajax_container.scrollTop > infiniteScroll1.trigger_scroll_pos || infiniteScroll1.ajax_container.scrollHeight == infiniteScroll1.ajax_container.clientHeight)
{
//alert('start scroll ' + infiniteScrollData1.continuous_scroll_pagination_segment + '|' + infiniteScroll1.continuous_scroll_completed_segment);
if (infiniteScrollData1.continuous_scroll_pagination_segment != infiniteScroll1.continuous_scroll_completed_segment && typeof infiniteScroll1.requested_data[infiniteScrollData1.continuous_scroll_pagination_segment] == 'undefined') {
infiniteScroll1.fetchData(infiniteScrollData1.continuous_scroll_pagination_segment);
infiniteScroll1.requested_data[infiniteScrollData1.continuous_scroll_pagination_segment] = true;
}
}
},
init: function() {
var data_pagination_number;
infiniteScroll1.ajax_container = document.getElementById(infiniteScroll1.ajax_container_id);
//infiniteScroll1.XHR = infiniteScroll1.createRequestObject();
if (!infiniteScroll1.ajax_container) {
alert(infiniteScroll1.no_container_msg);
return;
}
if (infiniteScroll1.next_chunk_link == '') { // there is no "More" link
//alert('continuous_scroll_pagination_segment: ' + infiniteScrollData1.continuous_scroll_pagination_segment);
if (infiniteScrollData1.continuous_scroll_pagination_segment) { // there are data to scroll
infiniteScroll1.max_scroll_pos = infiniteScroll1.ajax_container.scrollHeight - infiniteScroll1.ajax_container.clientHeight;
infiniteScroll1.trigger_scroll_pos = Math.round(infiniteScroll1.max_scroll_pos / 100 * infiniteScroll1.load_next_chunk_at_percent);
//alert('1 max_scroll_pos: ' + infiniteScroll1.max_scroll_pos);
//alert('1 trigger_scroll_pos: ' + infiniteScroll1.trigger_scroll_pos);
if (infiniteScroll1.ajax_container == document.body) {
window.onscroll = infiniteScroll1.continuous_scroll;
}
else {
infiniteScroll1.ajax_container.onscroll = infiniteScroll1.continuous_scroll;
}
infiniteScroll1.continuous_scroll();
}
}
}
}
infiniteScroll1.addEvent(window, 'load', infiniteScroll1.init, false);
//]]>
Karl Blankenship’s article, Organisms in ballast water increasing despite discharge measures, (June 2017) summarizes recent research into why tens of billions of nonnative aquatic organisms introduced into the Chesapeake each year in the ballast water discharged by ships visiting Bay ports pose a significant and growing threat to the Bay’s health. That research showed an alarming...
Dennis M King
September 20, 2017
Politics + Policy
0 Comments
The Patuxent River is the largest river totally contained in Maryland, and its watershed is often considered to be a microcosm of the Chesapeake Bay’s watershed.
Nutrient discharges are threatening the health of this river in ways that have been known for at least 25 years. During this period, federal, state and county governments have been entering into agreements, signing...
Dennis M King
February 01, 2007
0 Comments
Even the most optimistic Chesapeake Bay restoration advocate is beginning to understand that the federal government is not going to come up with the $15 billion or $20 billion in Bay restoration funds that were recommended by the Chesapeake Bay Blue Ribbon Finance Panel. New strategies are clearly needed.
Recently, the Bay restoration community, led by the Chesapeake Bay...