The way JavaScript works within Splunk is not exactly the same as it works elsewhere on a "regular" web site. Splunk uses JS Frameworks (notably mvc, backbone, jquery, requirejs, bootstrap, etc) to perform a majority of the UI integrations and implementations.
There are two books I am aware of with specifics to Splunk App Developing:
Building Splunk Solutions http://amzn.com/1514615746
Splunk Developer's Guide http://amzn.com/1785882376
(just for transparency - I wrote the Splunk Developer's Guide )
Take a look at those, read through dev.splunk.com about a bajillion times, and ask lots of specific questions. Try doing it once or twice. Might be easier to start with a Converted Dashboard (HTML) to see some of the under lying code.
Also - you can find me on IRC (#splunk on Efnet as alacer) , The Splunk Usergroup Slack (sign up at www.splunk402.com/chat) and here on answers, among other resources.
... View more