Feature Proposal: Ajax Access Fixes
Motivation
Over the years we've found a few issues when calling the existing SCRIPTs from ajax. This feature hopes to move the fixes we've made in Plugins into the core.
strikeone
Facilitate multi-request ajax POST's - where there might not be a html form at all.
For example, reordering some lists, proper save and continue with no refresh,
unicode
yup, as usual - There's a task shows a simple and important fix needed
API
At the moment we force each user of
jQuery.ajax()
learn about the foswiki specific's (strikeone, the other setting, off), where to get PREFERENCE info from in js.
Instead, I propose to supply a
foswiki.save()
that will just doit.
Description and Documentation
- copy the nonce into HTTP header, and ensure that its updated when a POST ajax call is made (Sven, look at the http-auth rfc)
- consolidate the UTF-8 hacks that WysiwygPlugin and NatEditPlugin have for ajax using
Accept-CharSet
header
- javascript wrapper (
foswikisave()
) for common operations to simplify the most common use cases
- redo strikeone submit onclick handler as a livequery for dynamic forms (like lazyloaded popup UI's)
- livequery for
s1js_available
show/hide js
Examples
HowToIntegrateWithRequestValidation should become simpler
Impact
Implementation
--
Contributors: SvenDowideit - 29 Jul 2012
Discussion
What's the status of this work?
--
MichaelDaum - 24 Apr 2013
And a year later ... What is the status of this? I'm setting it to Defer to 2.0, there is no task,. no checkins.
--
GeorgeClark - 03 Apr 2014
Changed to Parked. Needs a developer to adopt it.
--
GeorgeClark - 19 Nov 2015