0

I am running a html file in which when I click the submit button a new html file should open.

This is the code: code running in loginForm.html

{
    xtype : 'button',
    text : ' Login ',
    formBind : true,
    listeners : {
        click :function(){ 
            alert();
            //these methods are not working
            //Ext.getCmp('login_panel').load({url : '/smartNav/pub/html/index_dev.html', scripts : true});
            //Ext.getCmp('login_panel').update('index_dev.html');

        }   
    }
}

Can someone suggest me how this can be done?

1 Answer 1

0

You can open new window just using window.open

window.open('/smartNav/pub/html/index_dev.html');

or change location in current window

window.location.href='/smartNav/pub/html/index_dev.html';
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.