-
1 Mar 2008 12:08 PM #1
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.
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".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; } }); },
Please help.
/Tany
-
4 Mar 2008 7:06 AM #2
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.
-
4 Mar 2008 12:30 PM #3
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


Reply With Quote