Загрузка файла через Ajax в рамках JQuery

MyEclipse предлагает интеграцию редактора GUI Netbeans (Matisse) с Eclipse.

См. http://www.myeclipseide.com/module-htmlpages-display-pid-5.html

14
задан user200290 6 November 2009 в 08:02
поделиться

4 ответа

Ajax in the traditional sense is XMLHttpRequest, which does not allow you encode and send local files to a server.

The common ways of doing uploading through "ajax" means, is to either use a Flash swf to handle the uploading on the same page, or to use a form that has a target of an invisible 1x1 iframe. You have some Javascript show a uploading spinner or whichever. After the file is uploaded, make the server return some Javascript to the iframe like

<script type="text/javascript">
top.MyProject.doneUploading();
</script>

top will allow you to call Javascript in the regular page. In order for that to work though, you must make sure the iframe has submitted to the same domain that the top document is located at.

12
ответ дан 1 December 2019 в 12:13
поделиться

Try Uploadify

3
ответ дан 1 December 2019 в 12:13
поделиться

This is not a jQuery solution but take a look at http://www.swfupload.org. I have used that component in the past to give the ajax / flickr like upload interface. Works great and is fairly easy to integrate into your site. There is a ton of demos at http://demo.swfupload.org too.

0
ответ дан 1 December 2019 в 12:13
поделиться

У меня было несколько проблем с использованием Uploadify, поэтому я обратился к ajax-загрузке

9
ответ дан 1 December 2019 в 12:13
поделиться
Другие вопросы по тегам:

Похожие вопросы: