I have the following code onClick of a button
function Test(){
$.ajax({
type: 'POST',
url: 'testme?userId=
<%=session.getAttribute("username").toString()%>',
load: 'test.jsp'
});
}
What I am trying to achieve with the above is after passing the values to server, I would like to refresh the page using ajax. However page is not getting refreshed.
How can I resolve this problem?
Edit 1
<div id="myDiv">
<iframe src='testiframe.jsp?prod=<%=request.getParameter("prod")%>'
id="maxim" width="100%"
frameborder="0" height="190"></iframe>
</div>