I am using the jQuery.ajax()
with some specific data
. One of them is an albumid
which is generated on the server side if the user choose not to use one of his albums. The problem is that if a user add several photos to a new album then, instead of adding all photos to the same album, it creates several albums with one photo in each.
目前的工作是:
- update an album (using one the user already has)
- create a new album
- send back the new album id
我试图根据在<代码>success上寄回的新书目,更新《汇辑》的名称,认为下届“jax”呼吁中,“子号”数据:“(称号:册.val())>代码”即为“新册”,但使用前值。
我知道,这个问题可以通过使用<代码>sync:不实加以解决,因为在这种情况下,每 call将使用“名称”领域的更新价值,但完全冻结浏览器。
你们是否对这一问题有任何欺骗/诱惑?
Cheers,
Nicolas.