Dynadot โ€” .com Registration $8.99

AJAX file uploads

Spaceship Spaceship
Watch

monty

Established Member
Impact
3
Hey y'all

I am working on some upload section for a AJAX app and I am experiencing some difficulties keeping it all asynchronous when it comes to file uploads. The XMLHTTPRequest object doesn't do a very good job uploading files.

Now, I heard something about a workaround using iFrames. Does anybody have experience with tihs approach? Mind pointing me into the right direction or a tutorial maybe?

Thank much!

-monty
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
AJAX cannot send files to the server. This is because AJAX is actually Javascript which is a client side language which means that it can only interact with the browser, not the user.

http://www.air4web.com/files/upload/

This is what you may be looking for. ;)
 
0
•••
Chaos King said:
AJAX cannot send files to the server. This is because AJAX is actually Javascript which is a client side language which means that it can only interact with the browser, not the user.

http://www.air4web.com/files/upload/

This is what you may be looking for. ;)

Sorry, but I have to ask: what are you talking about? Ajax not able to interact with the server? Hmm, that's strange since my whole application interacts with the server from just one page and uses the XMLHttpRequest object to interact with the server (so Ajax, and JavaScript for that matter, CAN interact with the server).

The problem is that the XMLHttpRequest object doesn't work with file uploads. I know there's toolkit's out there using iFrames to get past this problem.

Thanks for your link anyway, but I really need a Ajax solution for this.

-monty
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back