Solved

Offline Interactive Touch screen Webapp

Posted on 2014-11-03
6
101 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:sjtinsley83
  • 3
6 Comments
 
LVL 51

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 51

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:sjtinsley83
ID: 40427126
Do you not find that the browser shows a security error because of this??
0
 
LVL 51

Expert Comment

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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 discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now