client/cree-client.js
function next() {
		
		var data = new Object();
		// Submit content of all forms -- except those with class 'ignore-form' -- before going to next page.
		$('#container form:not(.ignore-form)').each(function(index) {
			//console.log("Form no. "+index + " with the ID #" + $(this).attr('id') );
			//console.log($( this ).serializeArray() );
			data[$(this).attr('id')] = $( this ).serializeArray(); // Add each form's data to the data object.
		});
		
		if(isEmpty(data)) 
			cloak.message('next');
		else
			cloak.message('next', data);
	}
function next() {
		
		var data = new Object();
		// Submit content of all forms -- except those with class 'ignore-form' -- before going to next page.
		$('#container form:not(.ignore-form)').each(function(index) {
			//console.log("Form no. "+index + " with the ID #" + $(this).attr('id') );
			//console.log($( this ).serializeArray() );
			data[$(this).attr('id')] = $( this ).serializeArray(); // Add each form's data to the data object.
		});
		
		if(isEmpty(data)) 
			cloak.message('next');
		else
			cloak.message('next', data);
	}
function next ( ) { var data = new Object ( ) ; // Submit content of all forms -- except those with class 'ignore-form' -- before going to next page. $ ( '#container form:not(.ignore-form)' ) . each ( function ( index ) { //console.log("Form no. "+index + " with the ID #" + $(this).attr('id') ); //console.log($( this ).serializeArray() ); data [ $ ( this ) . attr ( 'id' ) ] = $ ( this ) . serializeArray ( ) ; // Add each form's data to the data object. } ) ; if ( isEmpty ( data ) ) cloak . message ( 'next' ) ; else cloak . message ( 'next' , data ) ; }
Continue to next stage
Continue to next stage