Results 1 to 2 of 2

Thread: Minor inconsistency in the docs

  1. #1

    Default Answered: Minor inconsistency in the docs

    Hey there, I am currently learning ExtJS and started working myself through the docs.
    One thing I noticed was that when creating a 'classic application' with these instructions https://docs.sencha.com/extjs/7.0.0/...using_cmd.html the Messagebox in the app.js file won't pop up, instead an error is thrown (Failed to load resource: the server responded with a status of 404 (Not Found) ..... MessageBox.js:1).

    This can be solved by removing these lines in the app.js file:

    Code:
    requires: [
            'Ext.MessageBox'
        ],

    Now on the other hand, when creating a 'modern application' using the instructions mentioned above, the error is not thrown and the code snipped mentioned above won't cause the messagebox to not show up. But removing it won't cause the messagebox to not show up either. A similar problem exists with the sencha fiddle.

    Can somebody explain to me why this is the case?

    Thanks,
    - M

  2. Guess I'll answer this one myself:

    The docs describe the neccessary steps for the modern toolkit and mention that API definitions may vary to the classic toolkit. The MessageBox API is on of those.

    Using the correct API definition works fine:

    Code:
    requires: [
            'Ext.window.MessageBox'
        ],
    
    Yet the not working API definition is part of the classic documentation https://docs.sencha.com/extjs/7.0.0/...essageBox.html

  3. #2

    Default

    Guess I'll answer this one myself:

    The docs describe the neccessary steps for the modern toolkit and mention that API definitions may vary to the classic toolkit. The MessageBox API is on of those.

    Using the correct API definition works fine:

    Code:
    requires: [
            'Ext.window.MessageBox'
        ],
    
    Yet the not working API definition is part of the classic documentation https://docs.sencha.com/extjs/7.0.0/...essageBox.html

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
  •