0

I´ve implemented a proxy with a listener with the next exception :

listeners: {
            exception: function () {
                Ext.Msg.alert(BB.Text.getText('ERROR_TIMEOUT_TITLE'), BB.Text.getText('ERROR_TIMEOUT_MSG') + '' + PROXY_TIMEOUT, Ext.emptyFn);
                Ext.redirectTo('http://www.google.es');  //for example
            }
        }

After the message I would like to redirect to other page / view but It is not working correctly

What am I doing wrong??

Thanks.

inane
  • 626
  • 10
  • 26

2 Answers2

1

For Sencha Touch

You probably want to read the documentation:

Documentation

http://docs.sencha.com/touch/2.4/apidocs/#!/api/Ext.app.Application-method-redirectTo

Quote

Redirects the browser to the given url. This only affects the url after the '#'.

Read the second part very carefully. By the way this is the same as:

MyApp.app.redirectTo('http://www.google.es')

It take it from your post that you want to redirect to a different page inside a webapp. Can be found here

WebApp: window.location.href = "http://www.google.es"
Community
  • 1
  • 1
Dinkheller
  • 4,631
  • 5
  • 39
  • 67
0

I think below line would solve your purpose.

Ext.app.Application.redirectTo('http://www.google.es');
dReAmEr
  • 6,986
  • 7
  • 36
  • 63