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

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

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
            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

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

Posted by "Leon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009219#comment-13009219 ] 

Leon commented on OFBIZ-4223:
-----------------------------

There's only few .post calls in current ofbiz trunk. But we use much in our customized project. We disabled the 'jsonp' temporarily to bypass this issue and wait for the official patch. So far it works for us well. We can wait, until the final version plugin released.

> 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

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

Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009624#comment-13009624 ] 

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

Ok Leon i'll keep watching this. As soon the new version is released i update the plugin.

Cheers

> 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

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

Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
    [ 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

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

Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp closed OFBIZ-4223.
----------------------------------


> 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
>             Fix For: SVN trunk
>
>
> 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

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

Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp resolved OFBIZ-4223.
------------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

Hi Leon
the version 1.8 is in trunk @Rev1087222

Cheers

> 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
>             Fix For: SVN trunk
>
>
> 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

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

Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp reassigned OFBIZ-4223:
--------------------------------------

    Assignee: Sascha Rodekamp

> 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

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

Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009090#comment-13009090 ] 

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

Hi Leon, did you have a link / example for this error in Ofbiz. They have only a 1.8pre release in github. Did we use the .post method? Or is it sufficient to wait until they release the final 1.8 version.

> 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