Skip to content

Simple component for MODX Revolution, that allows you to run any snippet through ajax.

Notifications You must be signed in to change notification settings

faitno/AjaxSnippet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AjaxSnippet

Simple component for MODX Revolution, that allows you to run any snippet through ajax.

Call AjaxSnippet at any page

[[!AjaxSnippet?snippet=`pdoResources`&parents=`0`]]

You can specify any parameters for end snippet:

[[!AjaxSnippet?
	&snippet=`pdoResources`
	&parents=`0`
	&tpl=`@INLINE <p>[[+idx]]. <a href="[[+link]]">[[+pagetitle]]</a></p>`
	&useWeblinkUrl=`1`
	&etc=`...`
]]

You can use jQuery event "as_complete" for custom functionality:

$(document).on('as_complete', document, function(e,d) {
	console.log(d);
})

About

Simple component for MODX Revolution, that allows you to run any snippet through ajax.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%