Solved

Offline Interactive Touch screen Webapp

Posted on 2014-11-03
6
120 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 57

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 57

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 57

Expert Comment

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

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This video teaches users how to migrate an existing Wordpress website to a new domain.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

734 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