 </cfoutput>
 
 	<script language="Javascript" type="text/javascript">
+		function handleSchemaChange(e) {
+			if ($("#schema_ddl").data("ready"))
+			{
+				$("#schema_ddl").data("ready", false);
+				$(".schema_ready").block({ message: "Please rebuild schema definition."});										
+			}
+		}
+
+
+		function bindKeyUp(id) {
+		
+			$($('#frame_schema_ddl')[0].contentWindow).on('keypress', '*', handleSchemaChange);
+				
+		}
+
+
 	$(function () {
 		$("#buildSchema").data("originalValue", $("#buildSchema").val());
 		
 		$("#schema_ddl").data("ready", false);
 				
-		
+		$("#schema_fieldset").on('keypress', 'textarea', handleSchemaChange);
 		
 		function reloadContent()
 		{

				},
				error: function (jqXHR, textStatus, errorThrown)
				{
					$("#schema_notices").html(errorThrown);	
				},
				complete: function (jqXHR, textStatus)

		,allow_toggle: true
		,word_wrap: true
		,language: "en"
		,syntax: "sql"
		,EA_toggle_on_callback:"bindKeyUp"
	});
	
	editAreaLoader.init({
