Results 1 to 3 of 3

Thread: ExtJs 4.2 - how to dynamically reload scripts

  1. #1
    Sencha User
    Join Date
    Sep 2018
    Posts
    2
    Answers
    1
    Vote Rating
    1
      0  

    Default ExtJs 4.2 - how to dynamically reload scripts

    Hi,

    In our project we are using ExtJs 4.2.
    I wonder if there is an option (config) to check if scripts has changed and load fresh version from sever (something like live server, F5 is not solution)?
    Or maybe there is another option to say to Loader to not keep information that some file/class is loaded ?

    I did my own workaround but i do not feel it is correct way.

    I modified Loader class and changed isClassFileLoaded and isFileLoaded to be always false.
    I also change Ext.ClassManager.isCreated to return always false.
    Now whenever script is required it is loaded from server first.


    Do you see better options?

    /regards
    Rafal

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    977
    Answers
    5
    Vote Rating
    -506
      -1  

    Default

    I have sent your question over to a team member and we will get back with you very soon with an answer. Thank you for your patience with us.

  3. #3
    Sencha Staff
    Join Date
    Sep 2017
    Posts
    124
    Answers
    1
    Vote Rating
    -107
      -1  

    Default

    Hi there,

    ExtJS 4.2 doesn't provide functionality to dynamically reload scripts. However, if you want to reload scripts you can add an script tag using plain javascript.

    See link - https://stackoverflow.com/questions/...and-re-execute for reference.


    However, if the purpose is fir development environment, you can use sencha app watch -

    https://docs.sencha.com/cmd/guides/a...ncha_app_watch

    Regards,
    Pavan,
    Sencha Support.

Similar Threads

  1. The best way to load scripts dynamically (Extjs 3.3.1)
    By peterversnee in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 19 Jan 2011, 11:36 PM
  2. Reload Dynamically an Extjs Script...
    By freepopo in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 5 Aug 2009, 3:11 AM
  3. reload and remove scripts and memory
    By markpele in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 11 Jul 2008, 1:50 PM
  4. >1 iFrame: Dont want to re-reload all scripts!
    By Choleriker in forum Community Discussion
    Replies: 29
    Last Post: 4 May 2007, 5:08 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
  •