Page 1 of 1

Interactive form

Posted: Fri Feb 16, 2007 12:07 am
by iknownothing
Hey Guys,
I'm looking for a way to display a number of field which have been defined my a textbox, without having to refresh the entire page or the page at all. eg. User types in 4, and 4 lots of 2 textboxes appear. I am assuming this would be either javascript or ajax. I did a search on AJAX forms, but for the most part they are trying to sell their product.

Thanks

Posted: Fri Feb 16, 2007 7:50 am
by feyd
Javascript can manage the generation (or visibility), there's no need for Ajax.

If you want the fields generated, you should probably use the DOM to do it via document.createElement() using object.appendChild() to add them to their container.

There are a bunch of examples around the forum of various fields being generated.