• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Passing values from JavaScript to next JSP

 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am new to AJAX. I have a requirement, where I have a page coded in JSF. On the page I have a dropdown and a textbox. When user selects a car from the dropdown, the value for the selected car should be displayed in the text box. The dropdown and the text box value, both are populated from the DB.

What I am trying to do currently is - when user selects a car from dropdown, onChange event I am calling this function below:


Here price.jsp will return me the value from the DB after processing business logic. I want to know, how can I pass my dropdown selection to this JSP from the Javascript. I don't want to submit the form obviously.

Thanks,
Grishma
[ November 21, 2007: Message edited by: Grishma Dube ]
 
Crusading Chameleon likes the size of this ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic