Solved

dropbox issue

Posted on 2014-12-04
5
110 Views
Last Modified: 2014-12-04
Hello,
  My company block dropbox from within our network.

Here is the script::

<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="<%=ApiKeySettings.DropboxAppKey%>"></script>

Open in new window


Is it possible to download the dropins.js file to local machine?

Thanks
0
Comment
Question by:SiemensSEN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 40480766
If it is blocked then it is blocked.  It is blocked for a reason and you need to take that up with your IT team.
EE is not allowed to help you to get around your companies security policies I am afraid.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 40480813
check with your IT department and find out why they have it blocked. if you're working on a company application that uses dropbox, explain that to them and see if they can make an exception.

if the script itself doesn't make any connection to dropbox, then ask them to download it for you so you can put it on your system. if it does interface with dropbox, then there is no way to use it without getting your IT department involved
0
 

Author Comment

by:SiemensSEN
ID: 40480836
OK. is there a  function to test if Dropbox is allowed/blocked.  If it is not allow then don't load the javascript.. is that possible. Currently, I have to wait until it time out
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 40481138
if you use jquery, you can use the getScript() function

http://api.jquery.com/jQuery.getScript/
0
 
LVL 10

Accepted Solution

by:
Hans Langer earned 500 total points
ID: 40481330
Check the domain access first and if it is ok then attach the script:

$.ajax({
  url  : 'http://www.dropbox.com',
  type : 'post',
  data : 'a=b',
  timeout:3000 //3 seconds
}).done(function(data, statusText, xhr){
  if(xhr.status==200){ //200==OK 
  //ADD SCRIPT TO YOUR PAGE
   var script = document.createElement( 'script' );
   script.type = 'text/javascript';
   script.src = 'https://www.dropbox.com/static/api/2/dropins.js';
   $("head").append( script );
  }
});

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Html using "Or" in condition 3 38
Get Text of Select using class name ***JavaScript Only*** 3 30
Multiple of Image Swaps 5 40
Javascript question 8 39
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question