Z verze
změnil(a) David Brazda
k 09.01.2021 11:41
Na verzi < 164.1 >
změnil(a) David Brazda
k 09.01.2021 10:49
< >
Popis verze: Smazaný objekt

Přehled

Rozpis

Na stránce změněno:
Obsah
... ... @@ -1,5 +3,3 @@
1 -{{newpages/}}
2 -
3 3  Pracovní prostor pro podporu denní agendy a vnitřní organizovanosti.
4 4  
5 5  Použít [[image:icon:accept]] hotovo, [[image:icon:cancel]] neni hotovo, [[image:icon:error]] není hotovo protože (uvést důvod)
XWiki.JavaScriptExtension[0]
Kód
... ... @@ -1,14 +1,22 @@
1 -require(['jquery'], function($) {
2 -$(document).ready(function(){
3 - $("a").click(function (e) {
4 - e.preventDefault(); //so the browser doesn't follow the link
5 -
6 - //$("#xwikicontent" ).load(this.href + " #xwikicontent" );
7 -
8 - //$("#content").load(this.href, function () {
9 -
10 - alert('Loading content from:' + $(this).attr("href"));
11 - //});
12 - }); //click
13 - });//ready
1 +require(['jquery'], function($) {
2 + $(document).ready(function(){
3 + $("#ajaxButton").click(function(e){
4 + e.preventDefault();
5 + // Using the core $.ajax() method
6 + $.ajax({
7 +
8 + // The URL for the request
9 + url: "$xwiki.getURL('TestVelocity.WebHome', 'get', 'xpage=plain&outputSyntax=plain')",
10 +
11 + // The data to send (will be converted to a query string)
12 + data: {
13 + myvalue: $("#ajaxButton").val()
14 + },
15 +
16 + success:function(result){
17 + $("#result").html(result);
18 + }
19 + });//ajax
20 + });//click
21 + });//ready
14 14  });//require
Jméno
... ... @@ -1,1 +1,1 @@
1 -if nav clicked, reload only content
1 +test extensiony