-
11 Jan 2008 7:37 AM #1
[Solved]redirect after login
[Solved]redirect after login
Hello All
I am totally new to ExtJS. i recently used login.js to implement a login form, i am using this with Ruby on Rails.
My login scripts goes to backed to verify user and then returning success or failure.
now javascript is just closing that login form.. how i can set a redirect..following is my code:
success : function() {
loginWindow.close();
before loginWindow.close() i want something like 'redirect_to = abc.html'
please adviceLast edited by mystix; 11 Jan 2008 at 7:54 AM. Reason: moved to 2.x Help from Open Discussion
-
11 Jan 2008 7:57 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Use:
Code:location.href = 'abc.htm';
-
11 Jan 2008 8:13 AM #3
:)
:)
that was so easy.. JAVASCRIPT...
i have used this hundred times.. but didnt occur to me once.... i thought may be EXT has its own way to redirect.....
thanks though.. for quick reply
Ajit
-
10 May 2010 5:13 PM #4
Thank U very much, i'm using this solution to redirect url after click on tbar button...

-
28 Oct 2010 4:24 AM #5
Will using location.href maintain the current session attributes on the client side? (i.e. Javascript objects)?
-
28 Oct 2010 5:14 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Only if the session id is stored in the cookie. If you are using url rewriting then you will need to add your jsessionid as parameter to new url.
-
28 Oct 2010 6:25 AM #7
Thanks Condor, that makes sense.


Reply With Quote