<?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 Javascript SDK ASync is unusable in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30541#M5349</link>
    <description>&lt;P&gt;I am loading all of the js files that the Javascript SDK needs, but it declares 'exports' and 'require' undefined. There is no other code involved, it gives the error upon loading the *.js files.&lt;/P&gt;

&lt;P&gt;Are there any other files that must be loaded?&lt;/P&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/async.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/utils.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/storm.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/service.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/searcher.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/paths.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/http.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/context.js"&gt; &lt;/SCRIPT&gt;

&lt;P&gt;From the Console Log:&lt;/P&gt;

&lt;P&gt;exports is not defined&lt;BR /&gt;
var root = exports || this;&lt;/P&gt;

&lt;P&gt;async.js (line 20)&lt;BR /&gt;
exports is not defined&lt;/P&gt;

&lt;P&gt;var root = exports || this;&lt;BR /&gt;
utils.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Service         = require('./service');&lt;BR /&gt;
storm.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Context     = require('./context');&lt;BR /&gt;
service.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Service      = require('./service');&lt;BR /&gt;
searcher.js (line 19)&lt;BR /&gt;
exports is not defined&lt;/P&gt;

&lt;P&gt;var root = exports || this;&lt;BR /&gt;
paths.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Class           = require('./jquery.class').Class;&lt;BR /&gt;
http.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Paths    = require('./paths').Paths;&lt;BR /&gt;
context.js (line 19)&lt;BR /&gt;
Async is not defined&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2012 14:43:00 GMT</pubDate>
    <dc:creator>terryloar</dc:creator>
    <dc:date>2012-08-09T14:43:00Z</dc:date>
    <item>
      <title>Javascript SDK ASync is unusable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30541#M5349</link>
      <description>&lt;P&gt;I am loading all of the js files that the Javascript SDK needs, but it declares 'exports' and 'require' undefined. There is no other code involved, it gives the error upon loading the *.js files.&lt;/P&gt;

&lt;P&gt;Are there any other files that must be loaded?&lt;/P&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/async.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/utils.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/storm.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/service.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/searcher.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/paths.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/http.js"&gt; &lt;/SCRIPT&gt;

&lt;SCRIPT type="text/javascript" src="https://community.splunk.com/../splunk-sdk-javascript/lib/context.js"&gt; &lt;/SCRIPT&gt;

&lt;P&gt;From the Console Log:&lt;/P&gt;

&lt;P&gt;exports is not defined&lt;BR /&gt;
var root = exports || this;&lt;/P&gt;

&lt;P&gt;async.js (line 20)&lt;BR /&gt;
exports is not defined&lt;/P&gt;

&lt;P&gt;var root = exports || this;&lt;BR /&gt;
utils.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Service         = require('./service');&lt;BR /&gt;
storm.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Context     = require('./context');&lt;BR /&gt;
service.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Service      = require('./service');&lt;BR /&gt;
searcher.js (line 19)&lt;BR /&gt;
exports is not defined&lt;/P&gt;

&lt;P&gt;var root = exports || this;&lt;BR /&gt;
paths.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Class           = require('./jquery.class').Class;&lt;BR /&gt;
http.js (line 19)&lt;BR /&gt;
require is not defined&lt;/P&gt;

&lt;P&gt;var Paths    = require('./paths').Paths;&lt;BR /&gt;
context.js (line 19)&lt;BR /&gt;
Async is not defined&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 14:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30541#M5349</guid>
      <dc:creator>terryloar</dc:creator>
      <dc:date>2012-08-09T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript SDK ASync is unusable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30542#M5350</link>
      <description>&lt;P&gt;You only need to include the splunk.js file from the client directory. It is built from the the other files. You can read notes about this on dev.splunk.com:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAEFN"&gt;http://dev.splunk.com/view/SP-CAAAEFN&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 02:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30542#M5350</guid>
      <dc:creator>ineeman</dc:creator>
      <dc:date>2012-08-10T02:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript SDK ASync is unusable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30543#M5351</link>
      <description>&lt;P&gt;I tried that but it still throws errors:&lt;/P&gt;

&lt;P&gt;====&lt;BR /&gt;
Async is not defined&lt;/P&gt;

&lt;P&gt;Async.chain([&lt;/P&gt;

&lt;P&gt;====&lt;/P&gt;

&lt;P&gt;container is undefined&lt;/P&gt;

&lt;P&gt;if(!container.appendChild || !container.cloneNode) {&lt;/P&gt;

&lt;H1&gt;splunk.ui.charting.js (Line 932)&lt;/H1&gt;</description>
      <pubDate>Fri, 10 Aug 2012 13:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30543#M5351</guid>
      <dc:creator>terryloar</dc:creator>
      <dc:date>2012-08-10T13:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript SDK ASync is unusable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30544#M5352</link>
      <description>&lt;P&gt;Can you show the entire contents of your page (you can paste it at gist.github.com or some other pastebin), so we can see what the issue is?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 17:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Javascript-SDK-ASync-is-unusable/m-p/30544#M5352</guid>
      <dc:creator>ineeman</dc:creator>
      <dc:date>2012-08-10T17:54:57Z</dc:date>
    </item>
  </channel>
</rss>

