WikiViewer - need small help

Dear friends,

I finished WikiViewer and it works fine except one annoying thing. After creating a list “dynamically”, the “control” top panel (Search input) shifts a bit to the left.

How to avoid it???

Thank you!

UPD It looks that the shift is due to (dis-)appearance of the slider. How to fix it?

Your wikiURL should be:

var wikiURL = 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&srsearch='  + query + '&callback=?';
1 Like

May you explain why?

To avoid CORS issues you need a callback function

@sorinr
Yes, ok. That’s clear. Thanks!