Hi, I am trying to call one jsp files from Jquery-ajax call. But, I can able to get only pure html. It is not loading any css files and js files while loading html. so html page is coming with out style sheets.
here, sample code updated
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<html>
<head>
<title>Welcome</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<script type="text/javascript" src="js/Global/jquery-1.4.2.js"></script>
<script type="text/javascript">
function ajaxJq()
{
$.get('test.jsp', function(data)
{
$('#myDiv').html(data);
alert('Load was performed.');
});
}
</script>
<body>
<div id="myDiv"></div>
<div id="error"></div>
<button id ="buttonAjax" type="button" onclick="ajaxJq()">Ajax Call</button>
</body>
</html>
test.jsp contains js files and css files. If i see that, test.jsp loading f