---
name: "MojoMojo::Controller::Jsrpc"
section: "3pm"
platform: "linux"
package: "libmojomojo-perl"
version: "1.12+dfsg-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/MojoMojo::Controller::Jsrpc"
---

# MojoMojo::Controller::Jsrpc(3pm)

Various JSRPC functions.

## NAME

MojoMojo::Controller::Jsrpc - Various JSRPC functions.

## SYNOPSIS

This is the Mojo powering our AJAX features.

## DESCRIPTION

This controller dispatches various data to ajax methods in mojomojo These methods will be called indirectly through javascript functions.

## ACTIONS

### render ( /.jsrpc/render )

Edit uses this to get live preview. It gets some content in params-\>{content} and runs it through the formatter chain.

### child\_menu ( /.jsrpc/child\_menu?page\_id=$page\_id )

Returns a list of children for the page given by the page\_id parameter, formatted for inclusion in a vertical tree navigation menu.

### diff ( /.jsrpc/diff )

Loads diff on demand. Takes an absolute revision number as arg, and diffs it against the previous version.

### submittag ( /.jsrpc/submittag )

Add a tag through form submit

### tag ( /.jsrpc/tag )

Add a tag to a page. Returns a list of yours and popular tags.

### untag ( /.jsrpc/untag )

Remove a tag from a page. Returns a list of yours and popular tags.

### imginfo ( .jsrpc/imginfo )

Inline info on hover for gallery photos.

### usersearch ( .jsrpc/usersearch )

Backend that handles jQuery autocomplete requests for users.

### set\_permissions ( .jsrpc/set\_permissions )

Sets page permissions.

### clear\_permissions ( .jsrpc/clear\_permissions )

Clears this page permissions for a given role (making permissions inherited).

### validate\_perm\_edit

Validates if the user is able to edit permissions and if a role was supplied.

## AUTHOR

Marcus Ramberg \<mramberg@cpan.org\>, David Naughton \<naughton@cpan.org\>

## LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
