• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Showing form elements on ajax call

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have 1 big form which is made in jsp. After a few form elements i have a drop down box, on the change of its value it depends that whether the next form elements should be displayed or not. But then its necessary to make sure that it will be belong to a single form only. Using ajax i am able to get a div tag populated successfully.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what you're asking--if you're just showing some form elements that were hidden before there shouldn't be an issue. Are you saying you're filling a div with the result of an Ajax call that returns a segment of a form?
 
kaustubh kurambhatti
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear David ,
Thanks a lot for trying to resolve my issue. Actually i m new in web desinging and programming field. But somehow i managed to get the solution.

I have 1 big form which i divide into 2 div tags. In 1st div tag there are several elements of the form and 1 drop down menu. On change of its value it checks in database for its relevant entry. If the concerned record is present in table then i dont need to show the further form(which i divided in 2nd div tag). Else i shd display the entire form and and allow user to submit the data.

So i was missing with its dynamicness.

I checked the presence of value in database through ajax. And was able to display the message whether the value is present or not. So through style tag i hide the display in that 2nd div. And in ajax function i changed the style property of div tag and made that visible.

Hence its the solution.
reply
    Bookmark Topic Watch Topic
  • New Topic