You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Sascha Rodekamp (JIRA)" <ji...@apache.org> on 2011/03/21 10:15:05 UTC

[jira] [Commented] (OFBIZ-4223) jQuery.ajax or jQuery.post with json datatype is broken after upgrade to jquery 1.5.1

    [ https://issues.apache.org/jira/browse/OFBIZ-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009063#comment-13009063 ] 

Sascha Rodekamp commented on OFBIZ-4223:
----------------------------------------

Hi Leon, 
thanks for reporting. Yep i noticed this issue and solved it in other cases. Don't see this issue with the validation plugin yet. But i will check and anyway it's time to update the plugin.

Btw. when we use the 'new' jQuery Ajax API this bug doesn't occur. 

jQuery.ajax(url: "...", dataType: "json").success(function(data){ ... });

Thanks and have a good day
Sascha

> jQuery.ajax or jQuery.post with json datatype is broken after upgrade to jquery 1.5.1
> -------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4223
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4223
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: jQuery 1.5.1
>            Reporter: Leon
>            Assignee: Sascha Rodekamp
>            Priority: Minor
>
> After the jquery library is upgraded from 1.4 to 1.5, the jQuery.post function fails while the response data type is 'json'. In firefox the error message is "Invalid Label" and in IE the error message is "no ending ;"。
> After some googling, I figure out the reason that is the uncompatible issue between jquery.validate plugin 1.7 and the jquery 1.5.1. Plese refer the links below for details:
> http://bugs.jquery.com/ticket/8064
> http://bugs.jquery.com/ticket/8084#comment:16
> and the note in http://bassistance.de/jquery-plugins/jquery-plugin-validation/
> There's a compatible version of jquery.validate in the GitHub repository, but it's not the official release. I wonder whether we should patch the jquery.validate with this temporary solution or not.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira