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
Interactive form
Moderator: General Moderators
- iknownothing
- Forum Contributor
- Posts: 337
- Joined: Sun Dec 17, 2006 11:53 pm
- Location: Sunshine Coast, Australia
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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.
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.