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

Přehled

Rozpis

XWiki.JavaScriptExtension[0]
Kód
... ... @@ -1,22 +1,15 @@
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
1 +require(['jquery'], function($) {
2 +$(document).ready(function(){
3 + $("#leftPanels a").click(function (e) {
4 + e.preventDefault(); //so the browser doesn't follow the link
5 +
6 +
7 + //$("#contentcolumn" ).load(this.href + " #contentcolumn" );
8 +
9 + //$("#content").load(this.href, function () {
10 +
11 + alert('Loading content from:' + $(this).attr("href"));
12 + //});
13 + }); //click
14 + });//ready
22 22  });//require