Results 1 to 7 of 7

Thread: [Solved]redirect after login

  1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    20
    Vote Rating
    0
      0  

    Question [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 advice
    Last edited by mystix; 11 Jan 2008 at 7:54 AM. Reason: moved to 2.x Help from Open Discussion

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    Use:

    Code:
    location.href = 'abc.htm';

  3. #3
    Ext User
    Join Date
    Jan 2008
    Posts
    20
    Vote Rating
    0
      0  

    Default :)

    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

  4. #4
    Ext User
    Join Date
    Apr 2010
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Thank U very much, i'm using this solution to redirect url after click on tbar button...

  5. #5
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    175
    Vote Rating
    2
      0  

    Default

    Will using location.href maintain the current session attributes on the client side? (i.e. Javascript objects)?

  6. #6
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    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.

  7. #7
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    175
    Vote Rating
    2
      0  

    Default

    Thanks Condor, that makes sense.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •