Jump to content

Form autorefresh help


robcrozier

Recommended Posts

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!
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.