Breviary Update 1.5

Thanks to those of you who tried your iOS devices (and Windows 8 devices) against my attempted solution. Needless to say, it failed the test… Interestingly, while the solution worked on my Kindle Fire, I likewise failed to get a satisfactory result on my Android phone.

I’m looking into some of the newer browser capabilities/technologies that came along with the HTML5 standard and, after reading and playing a little with the cache capability, I’ve discovered that what I’m looking for is actually the local storage function. Again, it’s a fairly new technology and I don’t know how widely it’s implemented. However, I think there’s a good chance that most mobile devices should be able to handle it.

I was trying to figure out how to make it work with my code and came to the realization that I’m using a lot of server-side code to create client-side implementations. Not the best way to go… As a result, I need to retool several functions and transform them from (server-side) PHP into (client-side) JavaScript. Luckily, the syntax between the two is similar enough that this shouldn’t be too difficult.

So—I’ll have another test for you modern mobile users in a little bit, that (hopefully) will be more successful than the last!

[Update: Actually, before I recode everything, let’s see if this will do what I hope it will… iOS/mobile users, please try the “Save your Preferences” button at the bottom of this page: http://stbedeproductions.com/breviary/test/combined_preferences.php

There should be a pop-up mentioning local storage and perhaps a string with gibberish in it. I’ll fix the gibberish if this is actually going to work… Thanks again!]

3 thoughts on “Breviary Update 1.5

  1. Richard Edward Helmer

    The rest worked on my iPhone.

    In our implementation, I also abandoned PHP scripting for date/office selection in favor of Javascript. It was the only way to get local caching to work and for users to cross seamlessly from online to offline.

    Seems you’re undertaking something more complex, as St. Bede’s offers setting individual preferences. Let me know if you need any pointers regarding HTML5 caching, though. I set up a dynamic cache file that loads about two weeks’ worth on a rolling basis. Getting HTML5 cache manifests to work can be exacting (they fail 100% if one file is missing or misdirected), but I found worth the effort!

  2. Michael LaRue

    Just tried it and got this

    locally stored value
    The Saint Bede’s Breviary

    Evening Prayer for Monday After Proper 17

    (The Martyrs of New Guinea, 1942)

    Commemoration of Proper 17 The Sunday closest to August 31

    Fore-Office

    The Invitatory and Psalter

    V: O God, make speed to save us.
    R: O Lord, make haste to help us.

    Glory be to the Father, and to the Son, and to the Holy Ghost: *
    as it was in the beginning, is now, and ever shall be, world without end. Amen.

    Alleluia

    O Gracious Light Phos hilaron

    O gracious light,
    pure brightness of the everliving Father in heaven,
    O Jesus Christ, holy and blessed!

    Now as we come to the setting of the sun,
    and our eyes behold the vesper light,
    we sing your praises, O God: Father, Son, and Holy Spirit.

    You are worthy at all times to be praised by happy voices,
    O Son of God, O Giver of life,
    and to be glorified through all the worlds.

    The Psalm or Psalms Appointed

    Fatal error: Call to a member function free() on a non-object in /home/content/49/5261249/html/breviary/test/EP_79_BCP.php on line 210

Comments are closed.