robcrozier Posted October 21, 2006 Share Posted October 21, 2006 Ok, what I’m trying to do is prompt a user for some input from a form, I then want this input to be validated and if the data entered is valid, I want another form to automatically be displayed below this one. I've seen it done loads of times and when I’ve used them in the past on other websites, the whole page does not seem to refresh - the new form or form field just appears.Can someone shed some light on this for me, does the whole page need refreshing (I can manage if this is the case). Or is there another way of doing it.Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/24654-form-autorefresh-help/ Share on other sites More sharing options...
obsidian Posted October 21, 2006 Share Posted October 21, 2006 one word: [b]AJAX[/b]. what is happening is that when the focus goes OFF of a field, there is an HTTP request made that validates that field. once it is confirmed that all the fields are valid, the javascript that has been performing the HTTP requests simply tacks on the additional fields or form to the end of the page. sounds simple in my explanation, but there is definitely a lot to it. Quote Link to comment https://forums.phpfreaks.com/topic/24654-form-autorefresh-help/#findComment-112283 Share on other sites More sharing options...
robcrozier Posted October 21, 2006 Author Share Posted October 21, 2006 Cheers mate, but what is AJAX? Quote Link to comment https://forums.phpfreaks.com/topic/24654-form-autorefresh-help/#findComment-112284 Share on other sites More sharing options...
fenway Posted October 22, 2006 Share Posted October 22, 2006 It's just another way of having a child process of the current window go round-trip to the server. AJAX is just the fanciest, new-fangled way. Quote Link to comment https://forums.phpfreaks.com/topic/24654-form-autorefresh-help/#findComment-112783 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.