﻿/// <reference path="jquery-1.4.4-vsdoc.js" />

/*
$(function () {
	$("h2").click(function () {
		this.innerText = "clicked!!";
	});
});
*/

$(function () {
	$('#commentForm').submit(function () {
		$.ajax({
			url: this.action,
			type: this.method,
			data: $(this).serialize(),
			success: function (result) {
				// refresh some part of the DOM based on the result
				$('#result').html(result.someProperty);
			}
		});
		return false;
	});
});

$(function () {
	$('#feedbackform').submit(function () {
		$.ajax({
			url: this.action,
			type: this.method,
			data: $(this).serialize(),
			success: function (result) {
				$('#result').html(result.name);
			}
		}
	);
		return false;
	});
});

$(document).ready(function () {
	$('p').addClass('highlight');
});


