Best way to host asynchronous messages with ExtJS

I basically have a form that users fill out, and in which you can also attach files. This is really equivalent to gmail in fact: files are sent while you are still printing information on the form, and when you click the final submit button, it expects that all files will be transferred and send the final fields.

My problem is to send these files during the process. My first idea was to first create a new FormPanel for each added file so that I could send them using POST Ext.Ajax.request. Unfortunately, we cannot insert the form into the form (and a little I thought ExtJS would handle it differently, but I tried, but it’s not).

I have seen several controls on the Internet using some Flash to do this, but that’s not the way I want to do this. I would like to do it just like Google did it! In addition to having a progress bar, this is a nice feature, but it's not necessary :) Thanks for the help!

+3
source share
1 answer

Short answer: do not paste forms, do not put them near (or even create dynamically).

longer:

, -, . () 2 . , , gmail: "" , , , , , , .

, , .

: "", . " " " " HTML/Ext FormPanel. ( ).

"Ext.Ajax.request" ad-hoc-.

Saki .

, : -)

+2

Source: https://habr.com/ru/post/1725354/


All Articles