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

modx-pro/AjaxSnippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages