<?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: Where does the JavaScript go? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66154#M2012</link>
    <description>&lt;P&gt;The JavaScript code on a web page should go in a &lt;CODE&gt;&amp;lt;script&amp;gt;&lt;/CODE&gt; tag. As for when to run it, for the JavaScript that creates the button, you'll probably want to run that when the page loads. How exactly you do that depends on what libraries you're using, if any, (e.g,. jQuery, etc.), so I can't answer that specifically for you.&lt;/P&gt;

&lt;P&gt;Of, if you are using a custom button instead, the JavaScript to trigger the Chooser to appear should be run from the event caused by the user (e.g., when they click a custom button or like on your page).&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2015 01:53:50 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-07-15T01:53:50Z</dc:date>
    <item>
      <title>Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66152#M2010</link>
      <description>&lt;P&gt;I am very new at this. Where do I put the JavaScript at to make the chooser appear on my webpage?&lt;BR /&gt;
This link says to use the JavaScript.&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/developers/dropins/chooser/js#triggering" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/dropins/chooser/js#triggering&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:41:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66152#M2010</guid>
      <dc:creator>Lisa S.66</dc:creator>
      <dc:date>2019-05-29T09:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66153#M2011</link>
      <description>&lt;P&gt;Sounds like you might want to start here:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;JavaScript Introduction: Where To&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="http://www.w3schools.com/js/js_whereto.asp" rel="nofollow noreferrer"&gt;http://www.w3schools.com/js/js_whereto.asp&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The demo instructions on the Dropbox website tell you what to embed on the page&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="YOUR_APP_KEY"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jul 2015 01:50:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66153#M2011</guid>
      <dc:creator>Ryan M.</dc:creator>
      <dc:date>2015-07-15T01:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66154#M2012</link>
      <description>&lt;P&gt;The JavaScript code on a web page should go in a &lt;CODE&gt;&amp;lt;script&amp;gt;&lt;/CODE&gt; tag. As for when to run it, for the JavaScript that creates the button, you'll probably want to run that when the page loads. How exactly you do that depends on what libraries you're using, if any, (e.g,. jQuery, etc.), so I can't answer that specifically for you.&lt;/P&gt;

&lt;P&gt;Of, if you are using a custom button instead, the JavaScript to trigger the Chooser to appear should be run from the event caused by the user (e.g., when they click a custom button or like on your page).&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 01:53:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66154#M2012</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-15T01:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66155#M2013</link>
      <description>&lt;P&gt;Okay, so I added this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;button type="button"&amp;gt;Try it&amp;lt;/button&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;style&amp;gt;
    var button = Dropbox.createChooseButton(options);
    document.getElementById("container").appendChild(button);
&amp;lt;/style&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I do not think that was was I was supposed to do.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 03:20:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66155#M2013</guid>
      <dc:creator>Lisa S.66</dc:creator>
      <dc:date>2015-07-15T03:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66156#M2014</link>
      <description>&lt;P&gt;Your button doesn't seem to be hooked up to anything, and you added your JavaScript code inside a &lt;CODE&gt;&amp;lt;style&amp;gt;&lt;/CODE&gt; tag instead of a &lt;CODE&gt;&amp;lt;script&amp;gt;&lt;/CODE&gt; tag.&lt;/P&gt;

&lt;P&gt;I recommend reading through the &lt;A href="https://www.dropbox.com/developers/dropins/chooser/js" rel="nofollow noreferrer"&gt;Chooser documentation&lt;/A&gt; again, and getting some help with the general HTML/CSS/JavaScript development for your page if you're having trouble. That's outside the scope of Dropbox API support of course though, so I can't offer much help there.&lt;/P&gt;

&lt;P&gt;I have a simple sample page that uses the Chooser here though:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://dl.dropboxusercontent.com/u/27506755/chooser_js_simple.html" rel="nofollow noreferrer"&gt;https://dl.dropboxusercontent.com/u/27506755/chooser_js_simple.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can look at the source to see how it works.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 03:45:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66156#M2014</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-15T03:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66157#M2015</link>
      <description>&lt;P&gt;I very much thank you for all your help. I am actually starting to get somewhere with all other this.&lt;BR /&gt;
Okay, so I have this &lt;BR /&gt;
&lt;A href="https://www.dropbox.com/s/5ytuljdzhg4i07x/Screen%20Shot%202015-07-15%20at%203.37.51%20PM.png?dl=0" rel="nofollow noreferrer"&gt;https://www.dropbox.com/s/5ytuljdzhg4i07x/Screen%20Shot%202015-07-15%20at%203.37.51%20PM.png?dl=0&lt;/A&gt;&lt;BR /&gt;
but I get this&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/s/6a5ya9zogitjfz7/Screen%20Shot%202015-07-15%20at%203.39.25%20PM.png?dl=0" rel="nofollow noreferrer"&gt;https://www.dropbox.com/s/6a5ya9zogitjfz7/Screen%20Shot%202015-07-15%20at%203.39.25%20PM.png?dl=0&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 02:48:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66157#M2015</guid>
      <dc:creator>Lisa S.66</dc:creator>
      <dc:date>2015-07-16T02:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66158#M2016</link>
      <description>&lt;P&gt;When using Drop-ins the domain(s) you want to use it on must be pre-registered on the App Console:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/apps" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/apps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Click on your app there and enter the domain for your site in "Drop-ins domains".&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 03:34:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66158#M2016</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-16T03:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66159#M2017</link>
      <description>&lt;P&gt;Thanks Greg! It works! Unfortunately though this is not what I thought It was. I need the users to be able to view and download from a specific app folder and only that specific app folder without having to sign in. Is there something like that?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 04:15:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66159#M2017</guid>
      <dc:creator>Lisa S.66</dc:creator>
      <dc:date>2015-07-16T04:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the JavaScript go?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66160#M2018</link>
      <description>&lt;P&gt;No, there currently isn't a way to restrict the Chooser to a certain path like that, but I'll be sure to pass this along as a feature request.&lt;/P&gt;

&lt;P&gt;(Unless you mean you want them to be able to view and download from &lt;EM&gt;your&lt;/EM&gt; account only? In that case, you may just want to use a shared link to a folder in your account: &lt;A href="https://www.dropbox.com/help/167" rel="nofollow noreferrer"&gt;https://www.dropbox.com/help/167&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 04:28:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Where-does-the-JavaScript-go/m-p/66160#M2018</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-16T04:28:17Z</dc:date>
    </item>
  </channel>
</rss>

