Open files from a web application with another web application? - javascript

So these days we want things to be on the cloud.
In the desktop area we could use one application to create a file, then another to open that file.
I wonder how you accomplish this file sharing between web applications?
Eg. if I create a web application letting the user create a file, how do I share this file to another web application for opening it? Maybe the user created a PDF file on my web application and when he clicks on it, I want this file to be opened using another web application - but is not mine - so that he doesn't need to download it to open it.
Is there a standard way of sharing files between web applications easily?
Im not asking about pure technologies that could make this possible eg. REST/json, but standard specification/implementation for sharing files between applications. Cause I haven't heard of this kind of implementation, which could be good for cloud services to eliminate the need of having to download everything.

Application A assigns an URL to the file, hands the URL over to application B and application B uses HTTP to retrieve the file via the URL. If both applications are running on the same server, this will be just as efficient as reading from a file from the file system, or from a database.

Related

extracting HTML5 and javascript library APIs from web pages inside android application

I am a researcher and and I have a project on Android web based mobile application analysis. For analyzing my data set which includes so many android apk files, I wanna to extract HTML or HTML5 APIs which has been used in application web pages. I can extract used urls in the application, but I do not know how can I load or find which web and javascript APIs will be load in the application web content at run time. In the application, we may have javascript libraries, Jquery and etc which are important too.
Is there any mechanism or tool which I load the url content in that and analyse the web content? Another thing is that. some of the application web pages maybe need user user pass or based on different users load different web content.
Briefly, How can I find which web APIs have been used in the application?
I need to crawl my urls with a Scrapy in python such as scrapy.
there is a good scrapy in python here.

Possible download / upload manager embedded on html page with access to local filesystem

As the title indicates i want to have a certain application get access to the local file system. To describe why i will illustrate my situation:
I am a running a IIS WebApplication with the C# MVC 4 Framework as backend module. The site solely consists of HTML, CSS markup and some JS. The page will be loaded in IE11+ (Edge) only. For the standard procedure of displaying and accessing data from as well as sending data to the server this works quite fine.
On a certain page I want the user to be able to upload a file using a simple file dialog, like the one you can initiate with a simple <input type="file"> tag. I also want to offer the posibility to download files from the server but need to know where files has been saved / will be saved to.
As described on a lot of different websites, just like this one here, the HTML5 File API does a great job but will not be able to return the full qualified filename including the local path directions, same for JS accessing the file object.
As my research confirmed HTML5, JS and also SWF (Flash) will not report detailed information because they are all sandboxed applications or restricted by RFCs. I already unterstood and appreciate the effort to secure my trips to internet.
But in this case do need the paths where a file was upload from and the file has been downloaded to.
So my question is, what is the best way to expose the full path directions for a up- as well as downloaded file to report them back to the server?
Is it possible to embed a SWF object inside HTML which will run inside an Adobe AIR sandbox or is a signed JAVA Applet still the one and only solution to accomblish this security breaking task?
A solution i would also apreciate would be the possiblity to ask the user to get access the file system, like you grant access to the web push service to receive notifications.
Also if there is a possible solution which may suite my circumstances please let me know by adding some simeple examples / revealing some factful links, thanks in advance.

How to convert a single page webapp into an offline format

I created a single page application using AngularJS. Is there a way to automatically convert it to an offline format like pdf or chm? The website contains multimedia content such as webms and ideally those should be preserved. Although having a single file (like a chm), would be preferable it would be sufficient to be able to view the contents of the website locally without having to use a web server.
Solutions like saving webpage as MHTML, HTML Help Workshop and WEB to CHM don't generate useful output. Allowing users to download the website and open the files directly doesn't work because of this error.

Changing download folder for a specific web application

I think the answer is going to be "not possible" but it doesn't hurt to ask.
I've created a web application for a specific user that in part creates Word Doc documents on the server that they then download to their local machines.
My end user is not an experienced computer user and occasionally "loses" the files they've downloaded. (They're in the default download directory mixed in with other things they've downloaded!). It would be preferred if files downloaded from my web application went to a specific folder.
Is there a way to do this either in the web apps code or as a configuration of their browser?
The web app is built using MS Web API 2/C# for the server and Javascript/JQuery/Knockout on the client side.

How can I use Javascript to perform background updates of a Phonegap application?

I am using PhoneGap to develop an application for Android and iOS, and recently in a discussion about this technology, someone told me a seemingly brilliant idea that I can do background updates of my application without having to submit a new application to the app store.
The problem is that, being that I am still fairly new to the HTML5/CSS and Javascript world, I cannot figure out how to download files to my www directory for permanent storage. I can dynamically load JS code or HTML pages at runtime, but I want to create some javascript module that will find that a certain .css, .html, or .js file is out of date, download the new version of that file from some http or file server to the www directory, and then have that new file permanently saved so that it is available the next time the app is opened.
I feel like this should be simple, but I can't figure out how to do it. Thanks in advance.
In order to permanently save files to the devices you will need to make use of the PhoneGap File APIs. Periodic tasks can be achieved with a simple Javascript timer.

Categories