JSP and Servlets

isi.catch

Active Member
Joined
Jan 11, 2007
Messages
41
Reaction score
0
Hi all...

I actually have two questions...

1)

I want to display certain messages depending upon the option selected in the combo box. As soon as the option is selected i want the corresponding messages to be displayed. That is I dont want to use submit button. I think this can be done in javaScript but im not sure how

2)

how do i upload a file from the users system into a folder on the server side??


Thanks in advance...
 
Hi all...

I actually have two questions...

1)

I want to display certain messages depending upon the option selected in the combo box. As soon as the option is selected i want the corresponding messages to be displayed. That is I dont want to use submit button. I think this can be done in javaScript but im not sure how
It sounds like you're looking for AJAX (Asynchronous Javascript And XML). It's quite easy to do. In short, you implement a few functions that work with a specific object (unfortunately different ones, depending whether it's IE or not). Then you tie it to an onClick() (or equivalent).

Alternatively, you could just use onClick() (or equivalent) to call a method to change it (this is only if you don't need to continuously check for changes to the data you want to display).
 
Top
Sign up to the MyBroadband newsletter
X