plugin:ajaxedit
Table of Contents
AJAXEdit Plugin
Compatible with DokuWiki
- 2024-02-06 "Kaos" unknown
- 2023-04-04 "Jack Jackrum" unknown
- 2022-07-31 "Igor" unknown
- 2020-07-29 "Hogfather" yes
Needed for datepicker, inlineedit, likeit, multiselect, rowmove, tagadd
Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Examples/Usage
This is only a helper framework used currently by multiselect, rowmove, likeit and datepicker
JavaScript Functions
/** * ajaxedit_send is a wrapper for jQuery's post function * it automatically adds the current pageid, lastmod and the security token * * @param string plugin plugin name * @param int idx_tag the id counter * @param function fcnSuccess callback function * @param hash data additional data */ function ajaxedit_send(plugin,idx_tag,fcnSuccess,data) /** * ajaxedit_parse is a simple function which parses the json response * * @param json data * @return mixed false if there is no data/ the response */ function ajaxedit_parse(data) /** * ajaxedit_checkResponse checks if the server error flag is set and displays a jQuery Dialog, with the Message * * @param hash response the parsed @see ajaxedit_parse server response * @return boolean false on error */ function ajaxedit_checkResponse(response)
PHP Fuctions
/** * error throw an error and leave * @param string $msg * @param integer $type error type * @param boolean $exit leave or not **/ function error($msg,$type=self::ERROR_OTHER,$exit = true) /** * getWikiPage returns the raw wiki data * @return string */ function getWikiPage() /** * success sends the success message * automatically sends error,msg,lastmod,index(id counter) * * @param array $data additional data */ function success($data=array()) /** * saveWikiPage saves the wiki page * * @param string $data wiki page * @param string $summary * @param boolean $minor * @param array $param will go to @see success * @param boolean $autosubmit if set will call success */ function saveWikiPage($data,$summary,$minor = false,$param=array(),$autosubmit=true)
Configuration and Settings
no configuration needed, yet.
Development
Change Log
- bump version 2021-10-24 (2021-10-24 14:50)
- ci - remove php 5.6 (2021-10-24 14:46)
- ci update (2021-10-24 14:40)
- cleanup and fix test (2021-10-24 14:31)
- Merge pull request #5 from menewol/master (2021-10-24 14:21)
- Update script.js (2021-03-18 11:10)
- fix date (2018-10-15 09:07)
- update travis file (2018-10-05 18:33)
Known Bugs and Issues
ToDo/Wish List
- More languages
- …
FAQ
This is only a helper/framework plugin
Discussion
plugin/ajaxedit.txt · Last modified: 2021-10-24 14:54 by peterfromearth