[advanced search]
Results from the most recent live auction are here.
20 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Domain Name Industry Newsletter
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-28-2006, 10:23 PM   · #1
monty
NamePros Member
 
monty's Avatar
 
Name: Mattijs Naus
Location: Hat Yai, Thailand
Trader Rating: (0)
Join Date: Jun 2005
Posts: 165
NP$: 104.00 (Donate)
monty is an unknown quantity at this point
AJAX file uploads

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


Please register or log-in into NamePros to hide ads
monty is offline   Reply With Quote
Old 05-29-2006, 12:05 AM   · #2
Chaos King
NamePros Member
 
Name: Jamie Chung
Location: Coral Springs
Trader Rating: (2)
Join Date: May 2006
Posts: 60
NP$: 1.75 (Donate)
Chaos King is an unknown quantity at this point
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.
Chaos King is offline   Reply With Quote
Old 05-29-2006, 03:11 AM   · #3
monty
NamePros Member
 
monty's Avatar
 
Name: Mattijs Naus
Location: Hat Yai, Thailand
Trader Rating: (0)
Join Date: Jun 2005
Posts: 165
NP$: 104.00 (Donate)
monty is an unknown quantity at this point
Originally Posted by Chaos King
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
monty is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Proof is in the Parking Website Header Design Hunting Moon
Advertise your business at NamePros
All times are GMT -7. The time now is 09:54 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0