Error with using method getJSON in jQuery 1.5.1
I've used in my project jQuery 1.4.4, decided to move to version 1.5.1 and I have a problem with method getJSON.
My JS code:
- $.getJSON("<s:url action="checkRegistryErrorsNumber" includeParams="none" />",
- {"registry.id": <s:property value="registry.id" />},
- function(data) {
- $("#errorsNumber").text(data.errorsNumber);
- if (data.errorMessage != "") {
- $("#messagesBlock").html(data.errorMessage);
- }
- });
I'm using Struts 2.0.14 and you see some struts tags from jsp page. That is response:
- <%@page contentType="application/json;charset=UTF-8"%>
- <%@taglib prefix="s" uri="/struts-tags"%>
- {
- "errorsNumber": "<s:property value="registry.errorsNumber" />",
- "errorMessage": "<s:actionerror />"
- }
Using jQuery 1.4.4 - all OK
Using jQuery 1.5.1
- error in FF : "Invalid label"
What has changed in the new version? Why the request has not working? Bug in jQuery?