JSP, Javascript, AJAX

Hi,

First and foremost, please direct me to the correct thread if my subject doesn't belong here.

Say I have the following form objects.

.....

<form name="form1" method="get" action="somewhere.jsp">

<select name="select" onchange="ajaxFunction(this.value)">

<option value="abc">ABC</option>

<option value="efg">EFG</option>

</select>

<input type="text" name="textfield" />

.....

What ajaxFunction() does is to retrieve data from db based on form1.select value and display the response text in form1.textfield.

When i triggered the function for the first time, it worked! However, my problem arised after i deliberately changed the db field, form1.textfield is not loaded with the updated value! No matter how many times i refresh the page and select any option, form1.textfield still show old values. I strongly feel there's something to do with caching but how do I solve this without manually deleting the Tomcat cache directory?

[1060 byte] By [weihza] at [2007-11-26 15:06:58]
# 1
what do the ajaxFunction do?
jgalacambraa at 2007-7-8 8:56:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Solved it! Just replace the xmlHttp("GET",url,true) "GET" to "POST"How could i overlooked it! Thanks anyway!
weihza at 2007-7-8 8:56:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
wow, that was a fast solution
jgalacambraa at 2007-7-8 8:56:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...