Development

Changeset 7987

You must first sign up to be able to contribute.

Changeset 7987

Show
Ignore:
Timestamp:
03/19/08 18:52:52 (4 months ago)
Author:
fabien
Message:

doc: removed broken link (closes #2964)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/branches/1.0/book/11-Ajax-Integration.txt

    r7807 r7987  
    287287 
    288288>**CAUTION** 
    289 >Ajax forms can't be multipart. This is a limitation of the `XMLHttpRequest` object. This means you can't handle file uploads via an Ajax form. There are workarounds though--for instance, using a hidden `iframe` instead of an `XMLHttpRequest` (see an implementation at [http://www.air4web.com/files/upload/](http://www.air4web.com/files/upload/))
     289>Ajax forms can't be multipart. This is a limitation of the `XMLHttpRequest` object. This means you can't handle file uploads via an Ajax form. There are workarounds though--for instance, using a hidden `iframe` instead of an `XMLHttpRequest`
    290290 
    291291If you want to allow a form to work in both page mode and Ajax mode, the best solution is to define it like a regular form, but to provide, in addition to the normal submit button, a second button (`<input type="button" />`) to submit the form in Ajax. Symfony calls this button `submit_to_remote()`. This will help you build Ajax interactions that degrade gracefully. See an example in Listing 11-12. 
  • doc/branches/1.1/book/11-Ajax-Integration.txt

    r7855 r7987  
    297297 
    298298>**CAUTION** 
    299 >Ajax forms can't be multipart. This is a limitation of the `XMLHttpRequest` object. This means you can't handle file uploads via an Ajax form. There are workarounds though--for instance, using a hidden `iframe` instead of an `XMLHttpRequest` (see an implementation at [http://www.air4web.com/files/upload/](http://www.air4web.com/files/upload/))
     299>Ajax forms can't be multipart. This is a limitation of the `XMLHttpRequest` object. This means you can't handle file uploads via an Ajax form. There are workarounds though--for instance, using a hidden `iframe` instead of an `XMLHttpRequest`
    300300 
    301301If you want to allow a form to work in both page mode and Ajax mode, the best solution is to define it like a regular form, but to provide, in addition to the normal submit button, a second button (`<input type="button" />`) to submit the form in Ajax. Symfony calls this button `submit_to_remote()`. This will help you build Ajax interactions that degrade gracefully. See an example in Listing 11-12.