HTML5 webstorage - html

Is it possible to give an offline HTML5 form to the end user like Excel file using storage mechanism?. So that he can fill the form and upload it to the J2ee based site.
In Excel this is possible. User can download the format of excel file, fills it and upload to the website. Later in servlet we read the contents and store them in DB.
Is same thing possible with HTML5?

Yes it is. You have to build the application as an offline application. While the user is updating is data, you serialize it to the webstorage. As soon as you have internet connectivity, just send the serialized that to the server to be parsed.

Related

Abobe Air/Flex 4.6 Remote File Viewer

I have a Air/Flex desktop application and I'm trying to create a component within the app that can view files on the web server is is already connected to. It just needs to access one particular folder that will contain PDFs, Images & Word documents. I also want the ability to click on the files and having them open in their default desktop applications.
Is this possible and how would I go about doing this?
It's possible but not with your Flex/AIR app alone. It cannot view files/directories on server by itself but it can communicate with your server via webservices, AMF, or any other back end based service. Typically the back end reads the folder and send this information to your app. Your app can open those files in corresponding app but only if those files are available on disk so your app will have to download them prior to opening them.
Every Application has different needs but I myself usually save anything to a desktop or you can use the App storage container as well. As I use only the desktop I download what is needed OR been asked for, and the visitor has the choice of keeping it or if not needed it gets automatically deleted! this way you can use whatever PDFs, Word, Images etc. use read and write (re-write) as well as creating PDFs on the fly with Images, text etc, and that way a visitor also can print directly at his or her own leisure. regards aktell

Is it possible to access web viewer content in Filemaker Pro?

I am developing Filemaker application that uses web viewer.
I need to access to DOM or Window object inside web viewer control so that I can send some messages(or trigger predefined events) to web page from Filemaker.
So the goal is to make web page inside web viewer control get some data that Filemaker sends at any time. Web page is a local html file of which URL starts with file:///.
Is it possible to do this or is there another way to accomplish this task?
It's much easier to send a message from the web viewer to FileMaker using the fmp url protocol (which you can use to e.g. call a script in FileMaker from Javascript).
You can't send a message directly to the web viewer from FileMaker. Your best bet is to set a variable on a service somewhere and have the web viewer poll that service to see if the value changes.
"This task" is not well-defined, IMHO. What exactly are "messages" or "predefined events"? You certainly can use the Set Web Viewer script step to make the web viewer load another URL at any time you wish to.
Note also that you can use Data URI to load data into the web-viewer directly, without requiring an external HTML document.

Offline Form Submission - Data SYnc

We have a Loan Management System, and as everybody knows there is Field Investigation like Residence, Office, Business Verification.
So we have a requirement to actually support offline data entry also.
Meaning, the Field Investigation officer may download the "template" in his mobile or and the save data. Later when he is connected to App, he can sync that data.
As of now in our web application, we have JSP pages to render above specific forms.
1.) How to pragmatically download the template or html content.
2.) Save the form data in local DB or say browser db
3.) Then later sync that Json data with relational DB.
Best is to download the jsp content from ajax request, then process it's html content and through HttpClient get the response for each and every url's (javascript, css) included in the package.
Zip it and then make it downloadable through browser.

How do I edit a document in a browser and save it to a database?

I am trying to write a web based application that allows the user to open a document in a browser window and edit it with some sort of editor such as MS Word (any editor will work) and then let the user save the document and have it stored in a database. I can get the document open in the browser window, but I don't know how to save it back to the database. Is this possible? The database is on the server side, not the client side.
Thanks.
This will be pretty tricky to do.
You'd probably need a Word macro or something to detect when the file is saved and then process whatever code on your server would be needed to process it.
My advice would be to use an existing browser-based document editor like Google Documents and hook into its API to do whatever database work you need.
Otherwise this will be tiresomely complex (what editors will you support? can you run arbitrary code against a user's machine? what if they're offline? etc).

Save pdf inside html5 local storage

I am using mozilla pdf.js to read and display content of a pdf file on browser. Later i thought to take this functionality offline and make use of local storage.
Till now i am able to create an offline app which makes use of manifest to make my app offline but the real challenge i have is how to read the pdf which is lying on my server.
Is there any way to save that pdf inside the local storage or any other way to save pdf data as blob inside local storage and then make on fly pdf using blob data.
Kindle cloud reader has this functionality but i am not sure how they are doing it.
Also i am not looking for code ( if any one can show the code that will be great ). Just guide me to the right direction because i know it is possible.
You can use indexed DB.
http://hacks.mozilla.org/2012/02/storing-images-and-files-in-indexeddb/
http://msdn.microsoft.com/en-us/library/ie/hh779017%28v=vs.85%29.aspx
Also work on your accept rate..seems too low..