jonatec
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by jonatec
-
-
Q. What technique is the most efficient in terms of image load times and performance...? Scenario 1. Is it to load a different size image by using a media query, as below: /* Smartphone */@media screen and (max-width: 320px) { .img-page-1-img { background: url('../images/img-page-1-img-117.jpg') no-repeat; width: 117px; height: 77px; }}/* Desktop */@media only screen and (min-width: 769px) { .img-page-1-img { background: url('../images/img-page-1-img-234.jpg') no-repeat; width: 234px; height: 154px; }} OR... Scenario 2. Load one single large image and use CSS to "stretch" and resize by setting the max-width property..? img { max-width: 100%;} Thanks....
Maintain a database on iPad using HTML5
in JavaScript
Posted
I have a client requirement to manage data locally on an iPad with no network connection, any advice would be welcome please…
Constraints:
1) No network connection when the iPad is out on site.
2) Cannot install a native iOS app.
Preferred wrapper:
1) Locally installed HTML5 file.
Requirement:
1) The HTML5 page, presumably using JavaScript, must be able to save form data to the iPad on a button click event.
2) The User needs a facility to subsequently upload the data to a central web server, either with network connection or by cable.
What is the best way the achieve this ?
I understand there may be a platform/browser data file size limitation ?
Thanks very much..