Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Populating the Combo Box using AJAX

Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Ranchers,
I'm doing my project in JSP and MySQL. The project is a lead-time calculation part. In the page I designed, I've 5 combo boxes.

Combo 1 : List all the countries
Combo 2 : List the Ports in the country which i selected after reloading
Combo 3 : List the Destination Place from the Lead time after reloading
Combo 4 : List the details type of transportaion (AIR, SEA or Road)

Textbox : will display the lead time of the shipments coming in mode of transport where country = xxx and port = xxx and destination = xxx

When ever i change the combo box values, I've written a script in onChange() to submit to the same page and it is taking long time for the user, since it is uploaded in the remote server.

I would like to use this in AJAX. I want some sample code for doing this.

Please help me ranchers..

Thanks and Regards

Aravind Prasad
Posts: 67619
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are examples of doing this all over the web. What part has you stumped?
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic