Hi im trying to build a mediawiki extension which requires AJAX calls during editing a page. All I need is to add a new edit button on the edit page which displays a javascript popup editor which in turn makes the appropriate calls.   I need to know...
I would like a tool in the sidebar's "Tools" section that takes readers to Special:PrefixIndex/FULLPAGENAME where FULLPAGENAME is replaced with the current page's full name. For example, say I was on the page Module:Citation/CS1 then...
MediaWiki Version and LocalSettings.php MediaWiki 1.22.4 $wgAllowUserJs = true; $wgUseSiteJs = true;  Browser Version FireFox 28.0  JavaScript Code  $ gvim common.js  function myFunction() {   alert("Hello World!"); }  var onClickAttribute =...
I'm trying to change some things on a map that is already initialised by another script, using the Leaflet library. This other script did not store the map-object in a global variable, or in any other location I can access with my script. So curr...
Here I am fetching the data from Wikipedia using following code. but it is not working for me.  var playListURL = 'http://en.wikipedia.org/w/api.php?format=json&action=query&titles=India&prop=revisions&rvprop=content&callback=...
I want add external script to head section for all pages in mediawiki.  Function onBeforePageDisplay callback from BeforePageDisplay hook:  //LocalSettings.php ... # Assign my functions to hook  $wgHooks['BeforePageDisplay'][] ='onBeforeP...
I would like to be able to automatically change links into affiliate links automatically on my MediaWiki installation. This would help to reduce the amount of time managing links in case the code needs to be changed in the future.  This is the setup...
EDIT: No JSONP! Yes i know CORS is handled by the server and Yes the server does support it. The issue is on my side.  I am trying to use MediaWiki API from the browser. I am sending a GET request through XMLHttpRequest but due to CORS issues it'...
I use this code to gathering the information from Wiki:     http://en.wikipedia.org/w/api.php?action=query&rvprop=content&prop=revisions&format=json&titles=apple   And I can get a JSON String like this  {     "query": {...
How do you use AJAX (in plain JavaScript, NOT jQuery) to get a page (same domain) and display just a specific DOM Element? (Such as the DOM element marked with the id of "bodyContent").  I'm working with MediaWiki 1.18, so my methods have...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.