1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Bangalore
    Posts
    95
    Vote Rating
    1
    Rameshlamani is on a distinguished road

      0  

    Default How to change the web URL of project for each page in ExtJs?

    How to change the web URL of project for each page in ExtJs?


    I have done application using EXtjs 4. Application contains many view screens like Login page, Dashboard. home etc, for to access project local URL is file:///E:/MyWeb/Web/index.html . once i visited this URL i will get first Login page because in viewport i have given xtype of Login view. whenever i will go different page URL wont be change it will be remains same as file:///E:/MyWeb/Web/index.html, but i can visit all the pages. some scenario if i am in middle, some problem happens in page when i reload the page it will go again Login page itself i cant be come in current page. again it will ask login and next i need to go required page. Can we change URL of the project in each page navigation? . How to achieve this one in ExtJs?. Great appreciated. Thank you. My viewport code is below.


    Code Here:


    Code:
        Ext.define('GulfMark.view.Viewport',  {
            renderTo: Ext.getBody(),
            extend: 'Ext.container.Viewport',
        layout: 'fit',
            defaults:
            {
                autoScroll: true
            },
            items:
                [
                    {
                        xtype:'container',
                        id:'mainContainer',
                        layout: 'fit',
                        items:[
                            {
                                xtype:'loginView'
        
                            }
                        ]
                    }
                ],
            listeners:{
        
            }
        });

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,272
    Vote Rating
    81
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      1  

    Default


    ExtJS is meant to be used as "one page application".

    Each view is NOT a page, is a component rendered in the application's page using DOM manipulation.

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  3. #3
    Sencha User
    Join Date
    May 2012
    Location
    Bangalore
    Posts
    95
    Vote Rating
    1
    Rameshlamani is on a distinguished road

      0  

    Default


    Thank you for reply, helpfull

Thread Participants: 1

Tags for this Thread