1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    66
    Vote Rating
    0
    gigas01 is on a distinguished road

      0  

    Default Unanswered: How can i send parameters to the next page?

    Unanswered: How can i send parameters to the next page?


    I have to send this parameter 'name' to the new page, but i don't have any idea to send it.

    onAddStaff: function(name) {

    document.location.hash = "#chain-err-job-action";
    // how should i send the parameter(name) to the next page?
    },

    if it is a normal url link, i should have made a url like

    ~~~~/chain-err-job-action?name=name

    like this.

    But the problem is, this is a hash code redirection.

    It doesn't work like this.

    Do you guys have any idea about this? man...

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    436
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    So you just want to build the url string and add in params? Take a look at Ext.String.urlAppend
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.