[Project_owners] Open webpage after install update

Eric H. Jung eric.jung at yahoo.com
Mon Feb 11 08:23:12 PST 2008



--- Ezequiel Calderara <ezechico at gmail.com> wrote:

> this is what showcase does:
> 
> showWelcomeScreenIfNeeded: function() {
>         if (ShowcaseCache.prefs.getBoolPref("firstRunRedirection")) {
>           var currentVersion = ShowcaseCache.prefs.getCharPref
> ("currentVersion");
> 
>           if (currentVersion != "0.9.4.6") {
>             ShowcaseCache.prefs.setCharPref("currentVersion", "0.9.4.6");
>             var targetURL;
>             if (currentVersion == "none") {
>               targetURL = "http://showcase.uworks.net/welcome.html";
>             } else {
>               targetURL = "http://showcase.uworks.net/updated.html";
>             }
>             var newTab = getBrowser().addTab(targetURL);
>             getBrowser().selectedTab = newTab;
>           }
>         }
>       },


A nice enhancement to the below code would be to change http://showcase.uworks.net/updated.html to
instead point to the newly-installed version. Example:
http://showcase.uworks.net/updated.html#0.9.4.6
or
http://showcase.uworks.net/updates/0.9.4.6.html
This way the user can easily read release notes specifically for his update.



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



More information about the Project_owners mailing list