Skip to content

AjaxifyJS Core handles ajax requests between client and server. By default supports json/json-p.

License

Notifications You must be signed in to change notification settings

dananichev/ajaxifyjs-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AjaxifyJS :: About

AjaxifyJS created for fast and easy to maintain consistent and stable Ajax-driven apps. You can include Ajaxify.js as AMD module or use it without any wrapper: just link it thru <script> tag.

Samples

Via AMD-module

require(["ajaxify"], function(ajaxify) {
	ajaxify.init({
		debug: false,
		multipleQueries: true
	});

	$("a").on("click", function(){
		ajaxify.sendRequest({
			url: this.href
		});
	});
});

Via <script>

var ajaxify = window.Ajaxify;
ajaxify.init({
	debug: false,
	multipleQueries: true
});

$("a").on("click", function(){
	ajaxify.sendRequest({
		url: this.href
	});
});

Expected response from server

jsonpCallbackFunc({
	"content": "%some-html-code%"
})

About

AjaxifyJS Core handles ajax requests between client and server. By default supports json/json-p.

Resources

License

Stars

Watchers

Forks

Packages

No packages published