Změny dokumentu Můj Deník
                  Naposledy upravil David Brazda 09.11.2021 08:13
              
      
      Popis verze:
              Smazaný objekt
          
   Přehled
- 
          Na stránce změněno: (1 změněno, 0 přidáno, 0 odstraněno)
 - 
          Objects (1 změněno, 0 přidáno, 0 odstraněno)
 
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 - $("#xwikicontent a").click(function (e) { 4 - e.preventDefault(); //so the browser doesn't follow the link 5 - 6 - //$("#contentcolumn" ).load(this.href + " #contentcolumn" ); 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