473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1346

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
0
by: doffer | last post by:
I want to make a portfoliosystem where user can register and get their own portfolio... I've started the developer work, but I'm stuck on the image upload part... I'm experiencing some problems...
10
by: John Smith | last post by:
I know that uploading an image to a database has been covered, oh, about 3 trillion times. However, I haven't found anything covering uploading to a MySQL database with .net. Please don't...
3
by: Senthil | last post by:
Hi all I'm new in ajax. How to upload a image using ajax..
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
2
by: pdesai007 | last post by:
hi all, i am trying to upload a image on to server with asp and AJAX, but it is not worked. so please give me information that upload an image to the server with java script without...
10
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
8
by: brahmaforces | last post by:
Hi Folks, I am using cherrypy and python. I am trying to get a user profile image to resize on the client side before uploading to the server. PHP has a gd library that does it it seems. Has...
3
by: Ajinkya | last post by:
Hello , Can any body tell me how to add progress bar while uploading image with the help of JavaScript or AJAX . I built application by using PHP & HTML. If you have any code or link from that I...
5
by: sarika | last post by:
Hi all I want to upload an image in my website using ajax and php i.e without refreshing the page i want to upload image . Plz help its very urgent
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.