I am trying to create the Preview of the selected file as Flipbook.
I am having angular 7 application where I am uploading image and I have to create flipbook view for the selected file for that I found one Javascript Flipbook project.
But not understanding the in tegration of both project as I am not knowing Javascript too much.
I thought to create one post call from angular 7 project consist of file data as request parameter and access that url through Javascript project using XMLHttpRequest.
but not sure about implementation.
Can anyone help me to get integration of both project?
Related
I'm trying to scrape off a user input from an application created with electron. I basically used the url to create the electron application in hopes to make an executable and use the following user inputs to tackle an issue with internet connectivity with the native application.
I have the source files for the original application but with me creating the electron application with just a url, i wouldn't have these files on the project. Is it possible for me to scrape user inputs without the original source files and just with basically an index.js in electron?
I Used various libraries and had a look around the html files by looking at developer mode etc, as well as trying to experiment by mixing with the source code, but didn't get any form of results that I needed.
I am using drive uploader component (https://driveuploader.com/) in my application to upload files on GoogleDrive. It is workign fine as long as the user selects file using the component. Now the new requirement needs me to upload the file manually using JavaScript. I will be given bytes array and then I need to convert that bytes array to file and then upload it to google drive using driveuploader and the further process goes on as is, but I am not able to come up with the idea how to do it. Any pointer in this regard are appreciated.
Thanks.
There is a program in my company that generates a JSON file. I created a website (that will be live on github pages) using java script and html that displays the information from this JSON. Now I want others in my company to generate individual JSON files and be able to upload them to this website by clicking a single button. I'm thinking the button they click would generate the JSON (let's say it saves automatically as c:data.json), programmatically open the github pages website and then programmatically upload c:data.json. I do not want the json file to be stored on the website, just uploaded for one time use.
I have done a couple google searches and can only seem to find stuff on how to upload a json file in your code which I am already doing locally. I need a local file to programmatically upload, in order to be used in a github pages website. I'm new to web dev and any help is appreciated :)
OS: Windows 10
developed using: node.js, javascript, html, json, github pages.
I'm currently working on a ionic app with Visual Studio. My final goal is to open a MDB database (Microsoft Access) that is located in a distant server. I suppose that I have to use a PHP file to accomplish it.
So I have a lot of questions:
- Is it possible to communicate with a MDB file througt JS in a Cordova app?
- How to include the PHP file to my JS?
Thank you in advance and sorry for my english, I'm not a native.
If you want JS to be able to talk to or change a MDB database, you'll need to build a PHP page on your web server that talks to the MDB database instead, and then talk to the PHP page with Cordova/JS.
Examples:
https://www.sitepoint.com/using-an-access-database-with-php/
Your PHP page should return JSPONP though (not regular HTML), and you can call your PHP page via jQuery. Here are other examples:
Simple jQuery, PHP and JSONP example?
I worked on a phonegap application using html5 for a month. I handle offline JSON files using File API.
It seems that the JSON files I store are automatically saved on /mnt/sdcard/.
The problem is, I find myself handling 3 files for each file I want.
1 st the file packaged with my app (js/products.js)
2 nd the remote file that sends me updates (http://website/remote_products.js)
3 rd the local file on sdcard I update with the remote data. (/mnt/sdcard/updated-products.js)
Is it possible to - instead of saving on the sdcard - update my app's assets using File API ?
Or create a new file in my app assets folder ?
(the JSON file packaged with my app. Found in js/products.js)
If yes, how plz ?
thx
Sadly, you cannot modify the files in /android_assets/www with the File API.
See this answer to a slightly different question answered by one of the PhoneGap Android devs: https://stackoverflow.com/a/8966227/878602
"You can't do what you want to do. The files in the assets directory are not technically on the file system so they are not accessible via the File API. This means calling window. resolveLocalFileSystemURI() will not return you a FileEntry."
You might consider to utilize Mott:
https://github.com/imlucas/mott, e.g. http://phonegap.com/blog/2013/04/23/story-behind-exfm/
It seems to be able dynamically version, update and persist update of any local asset.