hi
I've a JSP page like this with name test.jsp
<%@ page language="java" contentType="text/json; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%
response.setContentType("application/x-javascript");
%>
{"feed": "test"}
and an html page where i use jquery for reading the json object.
<html>
<head>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>
<script type='text/javascript'>
$(function(){
$.getJSON("localhost:8080/test.jsp?callback=?",{test:"test"}, function(data){alert("here");});
})
</script>
</head>
</body>
something here
</body>
</html>
but it shows an error as invalid label in firefox. Can anyone explain me the reason for this error. I've tried google but could not find a solution or explanation to my problem. What needs do be done for this. Please help me out. Thanks