Extension talk:Semantic OLAP
Add topicAppearance
Latest comment: 8 years ago by Davidkim12 in topic clicked submit button but, there was no reaction, and "json.query is undefined" in web browser console
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
clicked submit button but, there was no reaction, and "json.query is undefined" in web browser console
[edit]thank you for your extension.
but when i clicked submit button but, there was no reaction, and "json.query is undefined" in web browser console.
=>
i debugged in firefox debugger
finally i found what is bug.
in function loadSelection of ext.semanticOLAP.js file, var query has category:category:pagenmae ..
so there was no result in api.php request..
you should modify definition of getQuery function.
for example,
request += '[[Category:' + $(this).val() + ']]'; => request += '[[' + $(this).val() + ']]';
that is, remove Category in the string.
after that, it works well. Davidkim12 (talk) 10:52, 10 September 2017 (UTC)