<?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: Drop-in Saver in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Drop-in-Saver/m-p/50576#M1552</link>
    <description>&lt;P&gt;Lots of things about that code look weird. Try this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;meta charset="utf-8"&amp;gt;
        &amp;lt;title&amp;gt;Saver&amp;lt;/title&amp;gt;
        &amp;lt;script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="kyljf8vcbai3kc7"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
        &amp;lt;a href="https://dl.dropboxusercontent.com/s/deroi5nwm6u7gdf/advice.png" class="dropbox-saver"&amp;gt;Click here to save.&amp;lt;/a&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I changed a few things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I put the script tag in the head and closed it.&lt;/LI&gt;
&lt;LI&gt;I put some text inside the anchor tag so you could click the link. (I also moved the anchor tag outside of the &lt;CODE&gt;&amp;lt;script&amp;gt;&lt;/CODE&gt; wrapper so it actually shows up.)&lt;/LI&gt;
&lt;LI&gt;I removed the call to &lt;CODE&gt;createSaveButton&lt;/CODE&gt;, which referenced two undefined variables (&lt;CODE&gt;localhost&lt;/CODE&gt; and &lt;CODE&gt;filename&lt;/CODE&gt;) and didn't do anything with the button anyway.&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Thu, 15 Jan 2015 14:21:47 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-01-15T14:21:47Z</dc:date>
    <item>
      <title>Drop-in Saver</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Drop-in-Saver/m-p/50575#M1551</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;

&lt;P&gt;I'm struggling to implement a single drop-in saver button on a blank html document running from local host.&lt;BR /&gt;
I tried copying the dropins.js and referencing it locally but am unsure what else I could try to get a single upload button working.&lt;/P&gt;

&lt;P&gt;my code for reference:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;meta charset="utf-8"&amp;gt;
        &amp;lt;title&amp;gt; Saver&amp;lt;/title&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
        &amp;lt;script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="kyljf8vcbai3kc7"&amp;gt;

        &amp;lt;a href="https://dl.dropboxusercontent.com/s/deroi5nwm6u7gdf/advice.png" class="dropbox-saver"&amp;gt;&amp;lt;/a&amp;gt;

        Dropbox.createSaveButton(localhost, filename);
        &amp;lt;/script&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:46:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Drop-in-Saver/m-p/50575#M1551</guid>
      <dc:creator>A.L</dc:creator>
      <dc:date>2019-05-29T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-in Saver</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Drop-in-Saver/m-p/50576#M1552</link>
      <description>&lt;P&gt;Lots of things about that code look weird. Try this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;meta charset="utf-8"&amp;gt;
        &amp;lt;title&amp;gt;Saver&amp;lt;/title&amp;gt;
        &amp;lt;script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="kyljf8vcbai3kc7"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
        &amp;lt;a href="https://dl.dropboxusercontent.com/s/deroi5nwm6u7gdf/advice.png" class="dropbox-saver"&amp;gt;Click here to save.&amp;lt;/a&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I changed a few things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I put the script tag in the head and closed it.&lt;/LI&gt;
&lt;LI&gt;I put some text inside the anchor tag so you could click the link. (I also moved the anchor tag outside of the &lt;CODE&gt;&amp;lt;script&amp;gt;&lt;/CODE&gt; wrapper so it actually shows up.)&lt;/LI&gt;
&lt;LI&gt;I removed the call to &lt;CODE&gt;createSaveButton&lt;/CODE&gt;, which referenced two undefined variables (&lt;CODE&gt;localhost&lt;/CODE&gt; and &lt;CODE&gt;filename&lt;/CODE&gt;) and didn't do anything with the button anyway.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 15 Jan 2015 14:21:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Drop-in-Saver/m-p/50576#M1552</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-01-15T14:21:47Z</dc:date>
    </item>
  </channel>
</rss>

