Results 1 to 4 of 4

Thread: Ext.onReady() vs Ext.app.Application.launch()

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2009
    Posts
    317
    Vote Rating
    4
      1  

    Default Ext.onReady() vs Ext.app.Application.launch()

    Now that both of these functions are available and seem to do the same thing (execute code once the page has loaded), is there a recommended best practice as to when we would use one over the other?

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    624
    Vote Rating
    38
      0  

    Default

    Use Application.launch() if you're using the MVC architecture, otherwise Ext.onReady().

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Location
    Tehran
    Posts
    46
    Vote Rating
    1
      0  

    Default

    In 4.2.1 I could use both in MVC setting . But in ext 4.2.2 I could only use the launch method. It's odd.

  4. #4
    Sencha User
    Join Date
    May 2016
    Posts
    147
    Vote Rating
    11
      0  

    Default

    Quote Originally Posted by estesbubba View Post
    Use Application.launch() if you're using the MVC architecture, otherwise Ext.onReady().
    why is that? can you explain?

Similar Threads

  1. Another new Sencha App Launch from MadMobile :)
    By Bucs in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 4
    Last Post: 25 Jul 2012, 10:14 AM
  2. Card layout when using Ext.Application.launch
    By mjohnson in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 17 Jan 2011, 3:42 PM
  3. Launch external app
    By mitchellsimoens in forum Ext.air for Adobe AIR
    Replies: 3
    Last Post: 29 Jul 2009, 8:31 AM
  4. Launch a .Net app from Ext JS.
    By ydoc in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 21 Oct 2008, 10:15 AM

Posting Permissions

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