Hi,

is the "changeSelection" event fired repeatedly? If not, it might be a 
problem with your AjaxRequests class. Could you post some more details 
about that? Is it using synchronous requests?

Regards,
Daniel

Sík Dániel schrieb:
> I have a userList. I listen to changeSelection event.
> When a change happened I would like to fill up another list (called  
> roleList) with datas which are sended by a server-side php script  
> through an ajax-call.
> 
> Change (getSelectedItem) -> Ajax call to retrieve datas that belongs  
> to current selection in userList -> fill up roleList.
> This is a piece from my code:
> 
>              userList.addListener("changeSelection", function(e) {
>                  userDatas = qx5.utils.AjaxRequests.getUserData 
> (selectedUser);
>                  roles = userDatas.roles.split(','); // I retreave in  
> xml this: <roles>role1,role2,role3,role4</roles>
>                  roleList.removeAll();
>                  for (i=0; i<roles.length; i++) {
>                      var item = new qx.ui.form.ListItem(roles[i]);
>                      roleList.add(item);
>                  }
>              });
> 
> The reason why I would like to use "changeSelection" instead of  
> "click" is, that I would like to make this process on userList  
> initialization too.
> The problem is, that on the initialization my code start to generate  
> an endless loop of the same ajax call.
> When I dont use ajax call in the listener it works fine.
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to