[xwiki-users] saving a page using javascript
Hi good folks, Is there a way to save a page using javascript? I read the XWiki JavaScript API but could not find this functionality. Thanks in advance, Jan-Paul --- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. https://www.avast.com/antivirus
Hi Jean-Paul,
On 16 Jul 2016, at 15:58, Jan-Paul Kleijn <[email protected]> wrote:
Hi good folks,
Is there a way to save a page using javascript?
I read the XWiki JavaScript API but could not find this functionality.
You should check the XWiki REST API: http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI I don’t think there’s any JS API that encapsulate this but I could be wrong. Thanks -Vincent
Thanks in advance,
Jan-Paul
Hi, As Vincent mentions, REST is the way to go. An alternative, though, is to use the save action's URL: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HActio... Thanks, Eduard On Mon, Jul 18, 2016 at 10:28 AM, Vincent Massol <[email protected]> wrote:
Hi Jean-Paul,
On 16 Jul 2016, at 15:58, Jan-Paul Kleijn <[email protected]> wrote:
Hi good folks,
Is there a way to save a page using javascript?
I read the XWiki JavaScript API but could not find this functionality.
You should check the XWiki REST API: http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
I don’t think there’s any JS API that encapsulate this but I could be wrong.
Thanks -Vincent
Thanks in advance,
Jan-Paul
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Aah, but of course... Why didn't I think of this, I've done it before but got wrapped up in things so much I guess I just missed it. Thanks guys, FWIW I think XWiki is a remarkable platform. Just wanna put it out there ;) Op 18-7-2016 om 9:30 schreef Eduard Moraru:
Hi,
As Vincent mentions, REST is the way to go.
An alternative, though, is to use the save action's URL: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HActio...
Thanks, Eduard
On Mon, Jul 18, 2016 at 10:28 AM, Vincent Massol <[email protected]> wrote:
Hi Jean-Paul,
On 16 Jul 2016, at 15:58, Jan-Paul Kleijn <[email protected]> wrote:
Hi good folks,
Is there a way to save a page using javascript?
I read the XWiki JavaScript API but could not find this functionality. You should check the XWiki REST API: http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
I don’t think there’s any JS API that encapsulate this but I could be wrong.
Thanks -Vincent
Thanks in advance,
Jan-Paul
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
--- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. https://www.avast.com/antivirus
On 18 Jul 2016, at 14:02, Jan-Paul Kleijn <[email protected]> wrote:
Aah, but of course...
Why didn't I think of this, I've done it before but got wrapped up in things so much I guess I just missed it.
Thanks guys, FWIW I think XWiki is a remarkable platform. Just wanna put it out there ;)
Thanks Jean-Paul for the kind words. Would be awesome if you could come up with a quick testimonial sentence that we could put on http://www.xwiki.org/xwiki/bin/view/References/Testimonials :) Thanks -Vincent
Op 18-7-2016 om 9:30 schreef Eduard Moraru:
Hi,
As Vincent mentions, REST is the way to go.
An alternative, though, is to use the save action's URL: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HActio...
Thanks, Eduard
On Mon, Jul 18, 2016 at 10:28 AM, Vincent Massol <[email protected]> wrote:
Hi Jean-Paul,
On 16 Jul 2016, at 15:58, Jan-Paul Kleijn <[email protected]> wrote:
Hi good folks,
Is there a way to save a page using javascript?
I read the XWiki JavaScript API but could not find this functionality. You should check the XWiki REST API: http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
I don’t think there’s any JS API that encapsulate this but I could be wrong.
Thanks -Vincent
Thanks in advance,
Jan-Paul
participants (3)
-
Eduard Moraru -
Jan-Paul Kleijn -
Vincent Massol