Results 1 to 2 of 2

Thread: TypeError when initializing Ext.util.History

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    51
    Answers
    1

    Default TypeError when initializing Ext.util.History

    I'm using Ext 4.0.2, and trying to 'fix' the back button for an Ajax-loaded page using Ext.util.History,
    But when I put the following code on my page:

    Code:
    Ext.require(['Ext.util.History']);
    Ext.util.History.init(  function(){
        Ext.util.History.on('change', function(token)
            {
            }
        );
    });
    I get:
    Any advice on what I'm doing wrong so far?

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Posts
    51
    Answers
    1

    Default

    it was because I was missing
    <form id="history-form" class="x-hide-display">
    <input type="hidden" id="x-history-field" />
    <iframe id="x-history-frame"></iframe>
    </form>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •