1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    2
    Vote Rating
    0
    tany is on a distinguished road

      0  

    Default Form Submit and go to that page to which the from was submitted

    Form Submit and go to that page to which the from was submitted


    Hi,

    I am making a page which contains a form. When I submit the form, I dont want to check the response, instead directly navigate to another page with $_POST usable in the new page.

    Code:
    fs.getForm().submit({
                    method:'POST',
                    url: 'authentication.php',
                    success:function(){ 
                        Ext.Msg.alert('Status', 'Arbit Message', function(btn, text){
                        //url : 'searching.php'
                        if (btn == 'ok'){
                            var redirect = 'searching.php';
                            window.location = redirect;
                           }
                        });
                     },
    In the above code, I want the authentication.php to open in the current window, rather than just checking the response and then do something OR pass the $_POST variables to "searchin.php".

    Please help.

    /Tany

  2. #2
    Ext User
    Join Date
    Feb 2008
    Posts
    7
    Vote Rating
    0
    k6rksk6rks is on a distinguished road

      0  

    Default I almost have it

    I almost have it


    I have the exact question/problem. I am most of the way to the answer. I can get the form to go directly to itself rather than through authentication. At that point, I could then just do a redirect w/o using EXTjs, but I want to get there completely within EXTjs.

    I have posted on one of my own websites the sequence that I have gone through.

    See http://ncssa.info/example/dynamic.php

    This progresses through dynamic2, dynamic3 and dynamic4. I have gotten 2 and 3 to do what I want but not 4. Hopefully, some of this can be helpful to you.

  3. #3
    Ext User
    Join Date
    Feb 2008
    Posts
    7
    Vote Rating
    0
    k6rksk6rks is on a distinguished road

      0  

    Default I finished my solution

    I finished my solution


    I replied earlier when I was almost there. Thanks to help from the forum, I was able to get to where I wanted.

    My solution starts at http://ncssa.info/example/dynamic.php

    The final piece of the puzzle is in dynamic4.js which is accessed from

    http://ncssa.info/example/dynamic4.php

    These examples show:
    • Use Ajax to verify info and return to your page
    • Send POST info to the same page on the server
    • Send POST info to any page on any server

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."