Test Case for zjrJS.Doc.eP() - Stable Test Suite for zjrJS

This information lives on a webpage hosted at the following web address: 'https://www.omegajunior.net/code/zjrjs/stable.php'.

Showing whether zjrJS.Doc.eP() actually works.

Used zjrJS Version:

Stable Minified version 20141202t2322 of zjrJS.


 

Preconditions
Javascript must be allowed to run on this page.

Successful When...
In the form, after pressing the Prevent button, the form will not submit (and the page will not reload).
Actions

Test Code:

          var test=({
	run: function ( evt ) {"use strict";
		if ( 
			!test.require( "zjrJS.Doc.eP", "function" ) 
		) {
			return false;
		}
		return zjrJS.Doc.eP( evt );
	}
	,
	init: function () {"use strict";
		var D = zjrJS.Doc;
		D.aE( D.eid( "receiver" ), "submit", test.run );
		D = null;
	}
});
zjrJS.Doc.aE( window, "load", test.init );
        

Download:

Download zjrJS’ latest stable build (20141202t2322) minified (7.1KB).

Download zjrJS’ latest stable build (20141202t2322) (11.9KB).

Clicky Analytics