469,576 Members | 1,650 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,576 developers. It's quick & easy.

Image uploading through AJAX

Hi
I would like to have the sample code for file upload via AJAX. I
searched on the net and came to know that it is not possible directly.
But we can do it through hidden IFrame.
Thanks in advance

Nov 14 '06 #1
3 1265

ja**********@gmail.com wrote:
Hi
I would like to have the sample code for file upload via AJAX. I
searched on the net and came to know that it is not possible directly.

But we can do it through hidden IFrame.
The Yahoo! UI connection library might give you some hints how to do
this.

http://developer.yahoo.com/yui/connection/#forms

Peter

Nov 14 '06 #2
I have written a framework that uses an object instance of
"EXMLHttpRequest" - it means emulated XMLHttpRequest and uses iframes
as fallback solution, if your native Hidden Request is disabled. It can
be used to do comfortable "hidden" Uploads via Iframes, you're right
this is not possible by using native hidden Requests. EXMLHttpRequest's
syntax is exactly the same as XMLHttpRequest's, so using is pretty
simple ,)

Andi

Nov 14 '06 #3
Hi Peter
Thanks for your reply. I downloaded the Yahoo UI connection library and
and tested my pages. The problem is if the form containing <input
type="file" ... then the form is getting submitted by changing the
enctype. I am not getting any response from the server. I would like to
know how can i get the response from server.

Peter Michaux wrote:
ja**********@gmail.com wrote:
Hi
I would like to have the sample code for file upload via AJAX. I
searched on the net and came to know that it is not possible directly.

But we can do it through hidden IFrame.

The Yahoo! UI connection library might give you some hints how to do
this.

http://developer.yahoo.com/yui/connection/#forms

Peter
Nov 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by dave | last post: by
reply views Thread by doffer | last post: by
10 posts views Thread by John Smith | last post: by
3 posts views Thread by Senthil | last post: by
1 post views Thread by www.web20developers.com | last post: by
5 posts views Thread by sarika | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.