<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: include jquery into setup.xml in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/include-jquery-into-setup-xml/m-p/16297#M177127</link>
    <description>&lt;P&gt;You can also include JavaScript directory in the setup page directly using a CDATA block inside of a text node. This is useful when you have JavaScript that you want to only execute on the setup page (otherwise, you'll need to check the URL to determine if the current page is the setup page).&lt;/P&gt;

&lt;P&gt;Consider the following that open the jQueryUI date picker dialog when the input block is clicked:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;text&amp;gt;
      &amp;lt;![CDATA[
      &amp;lt;script&amp;gt;
          $(function() {
              $( "#datepicker" ).datepicker();
          });
      &amp;lt;/script&amp;gt;

      &amp;lt;div class="demo"&amp;gt;
          &amp;lt;p&amp;gt;Date: &amp;lt;input type="text" id="datepicker"&amp;gt;&amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
      ]]&amp;gt;
      &amp;lt;/text&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Mar 2012 04:09:53 GMT</pubDate>
    <dc:creator>LukeMurphey</dc:creator>
    <dc:date>2012-03-14T04:09:53Z</dc:date>
    <item>
      <title>include jquery into setup.xml</title>
      <link>https://community.splunk.com/t5/Splunk-Search/include-jquery-into-setup-xml/m-p/16295#M177125</link>
      <description>&lt;P&gt;Is there a way to include jquery into setup.xml?&lt;/P&gt;

&lt;P&gt;A simple example would be to show an alert box that says "Hello World"&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2010 14:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/include-jquery-into-setup-xml/m-p/16295#M177125</guid>
      <dc:creator>Nicholas_Key</dc:creator>
      <dc:date>2010-06-27T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: include jquery into setup.xml</title>
      <link>https://community.splunk.com/t5/Splunk-Search/include-jquery-into-setup-xml/m-p/16296#M177126</link>
      <description>&lt;P&gt;You can include an application.js file in your appserver/static directory, and it will be loaded into your setup.xml page.  applicaiton.js can, in turn, load whatever other scripts it wants. &lt;/P&gt;

&lt;P&gt;I believe that jquery is already part of Splunk, so you won't need to explicitly add jQuery yourself. &lt;/P&gt;

&lt;P&gt;Note that application.js is loaded pretty late in the page display cycle, so the user will see the page before your script is loaded. &lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2010 08:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/include-jquery-into-setup-xml/m-p/16296#M177126</guid>
      <dc:creator>Justin_Grant</dc:creator>
      <dc:date>2010-08-07T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: include jquery into setup.xml</title>
      <link>https://community.splunk.com/t5/Splunk-Search/include-jquery-into-setup-xml/m-p/16297#M177127</link>
      <description>&lt;P&gt;You can also include JavaScript directory in the setup page directly using a CDATA block inside of a text node. This is useful when you have JavaScript that you want to only execute on the setup page (otherwise, you'll need to check the URL to determine if the current page is the setup page).&lt;/P&gt;

&lt;P&gt;Consider the following that open the jQueryUI date picker dialog when the input block is clicked:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;text&amp;gt;
      &amp;lt;![CDATA[
      &amp;lt;script&amp;gt;
          $(function() {
              $( "#datepicker" ).datepicker();
          });
      &amp;lt;/script&amp;gt;

      &amp;lt;div class="demo"&amp;gt;
          &amp;lt;p&amp;gt;Date: &amp;lt;input type="text" id="datepicker"&amp;gt;&amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
      ]]&amp;gt;
      &amp;lt;/text&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Mar 2012 04:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/include-jquery-into-setup-xml/m-p/16297#M177127</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2012-03-14T04:09:53Z</dc:date>
    </item>
  </channel>
</rss>

