locked
Page navigation back issue in application

    Question

  • Backbutton working perfect on all pages but in on page debugger gives this error:

    Exception was thrown at line 113, column 13 in ms-appx://e8cc7427-e70c-408a-be78-cbf4c9bb05a6/js/utils.js
    0x800a138f - JavaScript runtime error: Unable to get property 'firstChild' of undefined or null reference

    Here is code for navigation like other all pages.

    window["viewSafes"] = {
            _safeTemplate: null,

            initialize: function () {
                DefaultPage.setPageTitle('My safes');
                $E('backButton').removeAttribute('disabled');

                Arbiter.subscribe('safes-ready', bind(this, this._safesp));

                this._safeTemplate = new WinJS.Binding.Template($E('safeTemplate'));
                this._safesp();
            },

            
           

    and error in utils function

    empty: function (el) {
                var child = el.firstChild;
                while (child) {
                    el.removeChild(child);
                    child = el.firstChild;
                }
            },

    Thursday, March 28, 2013 6:11 PM

All replies

  • Hi,

    Where is this utils empty function called ?

    Need some more info  to be able to help you.

    - Girija

    Thursday, March 28, 2013 7:23 PM
  • Plz give me your skype id i,ll show you full project or add me.

    Skype id : ajjmair

    Friday, March 29, 2013 6:22 AM