Solved

Offline Interactive Touch screen Webapp

Posted on 2014-11-03
6
111 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 54

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 54

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 54

Expert Comment

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

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

770 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