baiju Posted October 16, 2006 Share Posted October 16, 2006 HiI done a login form. User name and password checking ajax script.If password is wrong it showing correctly.My prob is user name and password is correct, i want to redirect the page to members area Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted October 16, 2006 Share Posted October 16, 2006 Use this javascript code: [code]location.href = 'new location here';[/code]Wrong forum by the way. Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 16, 2006 Share Posted October 16, 2006 ajax is not a scripting lanuage it's an exstention of javascript. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted October 16, 2006 Share Posted October 16, 2006 Nor is it an extension, it is a combination of technologies. It uses JavaScript's XmlHttpRequest and it uses XML. Quote Link to comment Share on other sites More sharing options...
ober Posted October 18, 2006 Share Posted October 18, 2006 Actually... I've been using AJAX techniques for quite some time and I have YET to use XML with it. Quote Link to comment Share on other sites More sharing options...
fiddy Posted October 19, 2006 Share Posted October 19, 2006 Hi,i guess you would have two JS functions one for request to the server and other for getting back the responce from the server. In the JS function which receives the responce you can user location.href='file.php' Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted October 19, 2006 Share Posted October 19, 2006 [quote author=ober link=topic=111639.msg453873#msg453873 date=1161188224]Actually... I've been using AJAX techniques for quite some time and I have YET to use XML with it.[/quote]Then I guess it techinically wouldn't be AJAX but just the use of XmlHttpRequest as AJAX is short for "Asynchronous JavaScript and XML". If you remove one of the parts then it wouldn't be AJAX. I don't use XML myself either though... Quote Link to comment Share on other sites More sharing options...
alpine Posted October 20, 2006 Share Posted October 20, 2006 Someway of topic perhaps...There are many ways of twisting this - if you use responcetext and get html in return you would perhaps call it AJAH (AJAXH for xhtml ??) or something, i still feel that i can call my usage of AJAX as AJAX even if i don't return XML - the principal of usage is the same exept for the way you treat the returned responce. If the responce is echoed out or adjusted further with a javascript is a matter of habbit if you ask me. I try to do things as little complicated as possible. Quote Link to comment Share on other sites More sharing options...
yanny Posted October 22, 2006 Share Posted October 22, 2006 You can work with header("location:url"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.