• 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

Retrieving list of values from select box using javascript

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a select box and a search button.
When I select an option in the select box and click Search,
a data grid must be displayed .This data grid has 5 collumns.Depending on the select option selected,all the data ,must be displayed.

How can I do this using javascript.
 
Rancher
Posts: 377
Android Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

If you are wanting to do this with JavaScript then I think you will need to use some Ajax to re render the table every time the search button is pressed.

foogle for ajax table and there are plenty of examples of this.

Sean
 
p hasini
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to do this using traditional javascript.

Because I cannot add .js files.I can only modify the javascript and jsp page.


Also I have to delete a row from the datagrid based on a column value in the grid.
 
Sean Clark
Rancher
Posts: 377
Android Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,
Well ajax is traditional javascript, but if you just want to filter rows then that is fairly simple and you will find plenty of people who have already implemented this. Removing rows is simple also, but are you expecting to use this to then delete a record from the database?

Sean
 
reply
    Bookmark Topic Watch Topic
  • New Topic