I am developing a web based application in which i have two hyperlinks in the left side of the page, and what i’m looking for is that when i click on the one hyperlink it should load the content of another.jsp and display it over present.jsp and if I click next hyperlink it should do the same for third.jsp over present.jsp .
I found something on stackoverflow like:-
javascript–
function showItem(url) {
$('#right-pane').load(url);
}
link–< a href=”showItem(‘another.jsp)”>item 1
where “right-pane” is the id of div tag where i want the another jsp content to be displayed.
< div id="right-pane" style="position: absolute; width: 988px; height: 649px; z-index: 2; left: 193px; top: 4px">
< /div>
But when i am clicking on item 1 its saying– The requested resource (/test1/showItem(‘another.jsp’)) is not available.
I am using apache tomcat as a server.
Thanks,
Arshad
add a class or id t your link
Add this to your header:
try change this
<script type="text/javascript" src="jquery.js">line totryed and tested this in ie9: