locked
Outlook.js not loading after Account Password Change RRS feed

  • Question

  • I have a the beginnings of a simple O365 App that was working and then, overnight, no longer works.  I think it's related to my Password changing and, somehow, being cached on the server.  I say this because I am able to copy and paste the same code into a new, starter template, and it will run.  The specific error I see in the Dev Tools console is -->

    Uncaught Office.js has not been fully loaded yet. Please try again later or make sure to add your initialization code on the Office.initialize function.d @ office.js:11


    Below is the very simple code I am trying to run.  Remember, this worked up to Monday, April 27th and on Tuesday, April 28th it no longer did.

    Home.js:

    (function() {
        "use strict";
    
        // The Office initialize function must be run each time a new page is loaded
        Office.initialize = function(reason) {
            $(document).ready(function() {
                app.initialize();
    
                $('#q5SaveEmail').on('click', function() {
                    console.log('I am here');
                    app.showNotification('TestHeader', 'Test Message');
                });
            });
        }
    })

    Home.html

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
        <title></title>
        <link href="../../Content/bootstrap.css" rel="stylesheet" type="text/css"/>
    
        <script src="../../Scripts/jquery-2.1.3.js" type="text/javascript"></script>
    
        <script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js" type="text/javascript"></script>
        <script src="../../Scripts/bootstrap.js" type="text/javascript"></script>
    
        <link href="../App.css" rel="stylesheet" type="text/css" />
        <script src="../App.js" type="text/javascript"></script>
    
        <link href="Home.css" rel="stylesheet" type="text/css" />
        <script src="Home.js" type="text/javascript"></script>
    
    
    </head>
    <body>
        <nav class="navbar navbar-inverse navbar-fixed-bottom">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" target="_new" href="https://crm.mydomain.com/">Q5 CRM</a>
                </div>
    
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
                    <button id="q5SaveEmail" type="button" class="btn btn-default btn-sm navbar-btn">Save Email</button>
                    
                </div>
            </div>
        </nav>
    </body>
    </html>


    Sa souvraya niende misain ye

    Wednesday, April 29, 2015 4:40 PM

Answers

  • I've answered my own question.  In `home.js` I left out this -->

    ();
    at the end.  I'm not sure what that does but working with office.js seems to need this.

    Sa souvraya niende misain ye

    Thursday, April 30, 2015 9:19 PM

All replies

  • Hi gujj001,

    Does it work fine in other browser?

    Please try to clear browser’s cache and cookie, then try again.

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, April 30, 2015 2:01 AM
  • Sorry, I should have been more complete I just didn't want to overwhelm anyone with a novel of text.

    I have tried this in IE, Chrome, Firefox on multiple computers and have cleared the cache multiple times on the client side.


    Sa souvraya niende misain ye

    Thursday, April 30, 2015 6:57 PM
  • I've answered my own question.  In `home.js` I left out this -->

    ();
    at the end.  I'm not sure what that does but working with office.js seems to need this.

    Sa souvraya niende misain ye

    Thursday, April 30, 2015 9:19 PM