Solved

Offline Interactive Touch screen Webapp

Posted on 2014-11-03
6
116 Views
Last Modified: 2015-01-02
I have a touch screen interactive display and I want to create a simple interactive program.

Basically the system will have 4 buttons and each button will either play a video or show an image/slide with the ability to back to the home screen.

The system needs to run on a windows computer and ideally we be written in HTML5.

The issue i'm having is knowing how to make it offline.
The reasons for making it offline:
- Making it run as fast as possible
- Internet cannot be relied on.
- playing back videos locally will be faster than via the web.

The ways ive been looking at:
- local webserver on the interactive pc
- caching the webapp locally
- just running the html locally (although i think running javascript locally may cause a few issues).

The html5 webapp will be using javascript / jquery

Could someone please offer some better ideas??

Thanks

Steve
0
Comment
Question by:Steve Tinsley
  • 3
6 Comments
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 40419588
The issue i'm having is knowing how to make it offline.
Why an issue?

Just code the html to reference a relative resource and open the file directly with a web browser.

We do this all the time - you don't have to have a web server serve the file for it to work.
0
 
LVL 55

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 40419603
So you have something like this

index.html
        /images
            some images
        /videos
           your videos
        /css
            your stylesheet
        /js
            your javascript

In the html file
<!doctype html>
<html>
<head>
...
<script src="js/jquery.js"></script>
<script src="js/yourscript.js"></script>
...
<link rel="stylesheet" href="css/styles.css" />
...
</head>
<body>
...
<a href="#video1">Button 1</a>
...
</body>
</html>

Open in new window


Then you have your javascript that when the <a> is clicked it plays the video using a relative location i.e

Now just load index.html directly in the browser as

file://path/to/index.html

Open in new window




videos/video1.mpg

Open in new window

0
 

Author Comment

by:Steve Tinsley
ID: 40427126
Do you not find that the browser shows a security error because of this??
0
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 40427190
Why would it?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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)

790 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