English 中文(简体)
更正通过jax发送的jquery数据
原标题:Modifying on the fly the data sent with jquery via ajax


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.

问题回答

象你这样的声音具有种族条件。 如果不看到该守则,它就难以肯定,但是,如果该守则被搁置,在成功手里没有进行评价,则可能就将《手册》定下来。

你仍然可以使用同声电话,但你必须按序这样做。 它称为积极的目标模式。 设置一个阵列,以听叫.。 每个人都在成功的手里呼吁下台。

你们应当把新价值作为album.val(<>/strong>)似乎不会重新评价新的价值。

It should be quite easy with jquery to retrieve the new Album value from $("#hiddenId").val()

考虑到检索的id从Ajax请求中储存在一个固定的隐蔽领域。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...