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

[jira] Created: (OFBIZ-4164) ajaxUpdateAreas not working

ajaxUpdateAreas not working
---------------------------

                 Key: OFBIZ-4164
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4164
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
         Environment: ubuntu 10.04,  FF 3.16.13
            Reporter: youssef khaye


When using multiple on-event-update-area for a form submit, it yields in an ajaxSubmitFormUpdateAreas and that does not work currently.

Without being a javascript expert, i can propose a patch to fix this issue.

I think it is a problem of variable visibility scope  inside the loop. Setting the jQueyr.ajax async option to false resolved the issue.
In the following patch, i used a name-spacing technique to ensure the parameters visibility inside callback function.

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

        

[jira] Resolved: (OFBIZ-4164) ajaxUpdateAreas not working

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

Jacques Le Roux resolved OFBIZ-4164.
------------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk
         Assignee: Jacques Le Roux

Youssef,

Forget it, I tested with this URL and I thoink I understod the issue. I did not apply your patch but used your idea of 
"async: false,"

It's fixed in trunk at r1067429

Please test and confirm. If it's ok, close the issue.

Thanks


> ajaxUpdateAreas not working
> ---------------------------
>
>                 Key: OFBIZ-4164
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4164
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: ubuntu 10.04,  FF 3.16.13
>            Reporter: youssef khaye
>            Assignee: Jacques Le Roux
>              Labels: jQuery
>             Fix For: SVN trunk
>
>         Attachments: selectall.js.patch
>
>
> When using multiple on-event-update-area for a form submit, it yields in an ajaxSubmitFormUpdateAreas and that does not work currently.
> Without being a javascript expert, i can propose a patch to fix this issue.
> I think it is a problem of variable visibility scope  inside the loop. Setting the jQueyr.ajax async option to false resolved the issue.
> In the following patch, i used a name-spacing technique to ensure the parameters visibility inside callback function.

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

        

[jira] Issue Comment Edited: (OFBIZ-4164) ajaxUpdateAreas not working

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

Jacques Le Roux edited comment on OFBIZ-4164 at 2/5/11 12:15 PM:
-----------------------------------------------------------------

Youssef,

Forget it, I tested with this URL and I think I understood the issue. I did not apply your patch but used your idea of 
"async: false,"

It's fixed in trunk at r1067429

Please test and confirm. If it's ok, close the issue.

Thanks

========TYPO============

      was (Author: jacques.le.roux):
    Youssef,

Forget it, I tested with this URL and I thoink I understod the issue. I did not apply your patch but used your idea of 
"async: false,"

It's fixed in trunk at r1067429

Please test and confirm. If it's ok, close the issue.

Thanks

  
> ajaxUpdateAreas not working
> ---------------------------
>
>                 Key: OFBIZ-4164
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4164
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: ubuntu 10.04,  FF 3.16.13
>            Reporter: youssef khaye
>            Assignee: Jacques Le Roux
>              Labels: jQuery
>             Fix For: SVN trunk
>
>         Attachments: selectall.js.patch
>
>
> When using multiple on-event-update-area for a form submit, it yields in an ajaxSubmitFormUpdateAreas and that does not work currently.
> Without being a javascript expert, i can propose a patch to fix this issue.
> I think it is a problem of variable visibility scope  inside the loop. Setting the jQueyr.ajax async option to false resolved the issue.
> In the following patch, i used a name-spacing technique to ensure the parameters visibility inside callback function.

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

        

[jira] Commented: (OFBIZ-4164) ajaxUpdateAreas not working

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

Jacques Le Roux commented on OFBIZ-4164:
----------------------------------------

Hi Youssef,

Your code an explanation make sense. But in order to exactly reproduce, could you please explain in more details the problem you crossed (platform(s), browser(s), steps). It would be cool if you could use this URL as basis https://localhost:8443/example/control/authview/findExampleAjax

Thanks


> ajaxUpdateAreas not working
> ---------------------------
>
>                 Key: OFBIZ-4164
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4164
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: ubuntu 10.04,  FF 3.16.13
>            Reporter: youssef khaye
>              Labels: jQuery
>         Attachments: selectall.js.patch
>
>
> When using multiple on-event-update-area for a form submit, it yields in an ajaxSubmitFormUpdateAreas and that does not work currently.
> Without being a javascript expert, i can propose a patch to fix this issue.
> I think it is a problem of variable visibility scope  inside the loop. Setting the jQueyr.ajax async option to false resolved the issue.
> In the following patch, i used a name-spacing technique to ensure the parameters visibility inside callback function.

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

        

[jira] Updated: (OFBIZ-4164) ajaxUpdateAreas not working

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

youssef khaye updated OFBIZ-4164:
---------------------------------

    Attachment: selectall.js.patch

> ajaxUpdateAreas not working
> ---------------------------
>
>                 Key: OFBIZ-4164
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4164
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: ubuntu 10.04,  FF 3.16.13
>            Reporter: youssef khaye
>              Labels: jQuery
>         Attachments: selectall.js.patch
>
>
> When using multiple on-event-update-area for a form submit, it yields in an ajaxSubmitFormUpdateAreas and that does not work currently.
> Without being a javascript expert, i can propose a patch to fix this issue.
> I think it is a problem of variable visibility scope  inside the loop. Setting the jQueyr.ajax async option to false resolved the issue.
> In the following patch, i used a name-spacing technique to ensure the parameters visibility inside callback function.

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

        

[jira] [Closed] (OFBIZ-4164) ajaxUpdateAreas not working

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

Jacopo Cappellato closed OFBIZ-4164.
------------------------------------

    
> ajaxUpdateAreas not working
> ---------------------------
>
>                 Key: OFBIZ-4164
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4164
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: ubuntu 10.04,  FF 3.16.13
>            Reporter: youssef khaye
>            Assignee: Jacques Le Roux
>              Labels: jQuery
>             Fix For: SVN trunk
>
>         Attachments: selectall.js.patch
>
>
> When using multiple on-event-update-area for a form submit, it yields in an ajaxSubmitFormUpdateAreas and that does not work currently.
> Without being a javascript expert, i can propose a patch to fix this issue.
> I think it is a problem of variable visibility scope  inside the loop. Setting the jQueyr.ajax async option to false resolved the issue.
> In the following patch, i used a name-spacing technique to ensure the parameters visibility inside callback function.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira