I have the following problem:
I have two servlets, one returns a navigation. There are categories and subcategories that the servlet gets through the DAO. I use the following script to get the servlets result on the right position:
$(document).ready(function() {
$('#navigation').load('Navigation');
$('#content').load('Content');
});
Below my navigation div, I have a content div. As you can see, i am loading the content-servlet. In my navigation; i have the following elements:
<li><a><form action='Content' method='get'><button type='submit'>"
+ k2.getKName() + "</button><input type='hidden' name='category' value='"+ k2.getKategorieNr() + "'/></form></a></li>
Now when I click on a subcategory, the button will call the content servlet. The problem is, that it loads a new page without the navigation. So I can only see the code that the servlet returns in a new page.
How can I get the result of the content servlet inside my previous page as it already works for my navigation servlet?