1. #1
    Ext User boriscy's Avatar
    Join Date
    Dec 2007
    Posts
    21
    Vote Rating
    0
    boriscy is on a distinguished road

      0  

    Cool Adding a Token

    Adding a Token


    I would like to add a token to every Ajax request, especially with the forms, I've tried to use
    Code:
    Ext.Ajax.on('beforerequest', function(conn, options){
        options.params.token = 'hdsja3434kuh34asdlfu';
    }
    this code doesn't work with Ajax calls made by a Form submit action. I've tried in many ways to add a param like using options.baseParams.token or try to add via prototype.

    How can I make this work, or how can I add the token when I submit af orm
    Thanx in advance.

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,360
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    have you tried baseParams when sending the requests?

  3. #3
    Ext User boriscy's Avatar
    Join Date
    Dec 2007
    Posts
    21
    Vote Rating
    0
    boriscy is on a distinguished road

      0  

    Default


    Quote Originally Posted by jgarcia@tdg-i.com View Post
    have you tried baseParams when sending the requests?
    Yes!!!

Thread Participants: 1