29 articles and counting

User didn’t install your commands detection

Since MOBhat has so many steps to get setup, a Troubleshooting page would be helpful. The first common issue is people skipping the Ubiquity install step, completing the rest of the steps and then getting stuck or confused.

I’m using Ubiquity behind the scenes, so it’s optional for the user to use the command line. Since I don’t have them invoke it, or describe it in detail, it’s an easy step to skip.

The Troubleshoot link above detects if you’ve installed the MOBhat command feed. If not it displays an error and gives instructions. If Ubiquity had a <noscript> like mechanism, then I could detect if Ubiquity wasn’t installed earlier.

View the HTML source of the page, the technique might be useful on your command feed pages. If so just add a pageLoad command like this to your command feed:

function pageLoad_detectNoUbiquity(){
    var doc = Application.activeWindow.activeTab.document;
    var url = doc.location.href;
    var troubleshoot = "http://mobhat.restservice.org/welcome/troubleshoot";
    if (url == troubleshoot) {
        jQuery('.no-ubiquity', Application.activeWindow.activeTab.document).hide();
        jQuery('.ubiquity', Application.activeWindow.activeTab.document).show();
    }
}