My company still insists on supporting OS9/MSIE (which doesn't support XMLHttpRequest), so we have to use iframes as a work-around. We still call it AJAX, mostly because it's not worth describing the subtle "backend" differences to non-techies.Either way, pretty neat.
boardo: You've just about got it, it's actually anything that is written with javascript with any xml functionality that works asynchronously. Asynchronous Java and XML.... AJAX :-)
Well if you want me to define Ajax for you allow me to do so: Wikipedia"The XMLHttpRequest object to exchange data asynchronously with the web server. In some Ajax frameworks and in some situations, an IFrame object is used instead of the XMLHttpRequest object to exchange data with the web server."Not always is the XMLHttpRequest Object used, so in reality the title of the header is wrong. If you actually read the code you would understand the title. If the application speaks asynchronusly to the server it is AJAX!
What's even funnier is that every source that defines AJAX includes the method they use, but I guess they are wrong as well. Now that is lolish, comment++
lack of progress bar is PHP's fault. There is no solution for a progress bar in PHP unless you use a Perl CGI script as a man-in-the-middle (e.g.: MegaUpload). It's a hack, though.The only other way is to monitor the temporary upload file size. of course you don't know the total size and you are screwed if there are multiple uploads occuring.It seems such a small thing, but I don't see PHP fixing it anytime soon for some odd reason. Progress bar is really something needed I think. Other languages can do it.
Dear Bro, Its working fi9 for me but one problem is if i want 2 change the upload pic could it change?And i also want if the wrong file is selected for uploading it displays an error.I also want to fix the size of pic not more than 500kb and there are two button one is 'browse' and other is 'change'.I m not an expert programmer.I just know html.If u can do this i will be gr8ful to u.mail me the code on developerpk@gmail.com
Dear Xperts,Its working fi9 for me but one problem is if i want 2 change the upload pic could it change?And i also want if the wrong file is selected for uploading it displays an error.I also want to fix the size of pic not more than 500kb and there are two button one is 'browse' and other is 'change'.I m not an expert programmer.I just know html.If u can do this i will be gr8ful to u.mail me the code on developerpk@gmail.com
If you don't like AJAX news, piss off, don't read it. Considering it's the most interesting thing to hit web development since standards-based design, many of us are very interested.Personally I use Perl and just recently was looking for an AJAX uploader. There are not many out there. I thought I'd found something with FileChucker but the non-free factor is annoying.
I would use this, as it does solve a problem, however it's not technically ajax so I can't use it. I'm just going to have to dream about the millions of dollars I would make if only this solution, to my problem, were ajax.
File uploading with AJAX is not available and, it will never come into picture, if AJAX supports file upload you have to give the file name as an input to the AJAX object from your HTML page, then it uploads by taking like textfield.value may be you thinking in that way, What happens you hardcode a System file in your AJAX code and upload to the server without user permission! Will that be bigsecurity flaw right:) So never think of AJAX file upload, even if AJAX provides file upload there should be an alert from AJAX Engine to take permission from the user to upload the file, this will very very annoying to the user, so we need not think about this now!
rchtrJan 11, 2006
My company still insists on supporting OS9/MSIE (which doesn't support XMLHttpRequest), so we have to use iframes as a work-around. We still call it AJAX, mostly because it's not worth describing the subtle "backend" differences to non-techies.Either way, pretty neat.
kruleJan 12, 2006
boardo: You've just about got it, it's actually anything that is written with javascript with any xml functionality that works asynchronously. Asynchronous Java and XML.... AJAX :-)
gunbusterJan 12, 2006
No Digg. Its been a feature (albiet not well documented) of Rails for a while now too.
jinx__Jan 12, 2006Submitter
@gunbusterYes, that video can been seen here: <a class="user" href="http://mir.aculo.us/articles/2005/04/10/upload-progress-with-ruby-on-rails-and-ajax-demo-movie">http://mir.aculo.us/articles/2005/04/10/upload-progress-with-ruby-on-rails-and-ajax-demo-movie</a> However, there are negatives to RoR like auto templ building and a lot of overhead on simple projects. Anyways, i found this to be very useful.
jinx__Jan 12, 2006Submitter
Well if you want me to define Ajax for you allow me to do so: Wikipedia"The XMLHttpRequest object to exchange data asynchronously with the web server. In some Ajax frameworks and in some situations, an IFrame object is used instead of the XMLHttpRequest object to exchange data with the web server."Not always is the XMLHttpRequest Object used, so in reality the title of the header is wrong. If you actually read the code you would understand the title. If the application speaks asynchronusly to the server it is AJAX!
jinx__Jan 12, 2006Submitter
What's even funnier is that every source that defines AJAX includes the method they use, but I guess they are wrong as well. Now that is lolish, comment++
bloodwineJan 13, 2006
lack of progress bar is PHP's fault. There is no solution for a progress bar in PHP unless you use a Perl CGI script as a man-in-the-middle (e.g.: MegaUpload). It's a hack, though.The only other way is to monitor the temporary upload file size. of course you don't know the total size and you are screwed if there are multiple uploads occuring.It seems such a small thing, but I don't see PHP fixing it anytime soon for some odd reason. Progress bar is really something needed I think. Other languages can do it.
jammydevilMar 3, 2006
Cryptoknight:- Wouldn't mind looking at the source code for <a class="user" href="https://files.secureirc.org">https://files.secureirc.org</a> if you're still offering?
developerpkApr 19, 2006
Dear Bro, Its working fi9 for me but one problem is if i want 2 change the upload pic could it change?And i also want if the wrong file is selected for uploading it displays an error.I also want to fix the size of pic not more than 500kb and there are two button one is 'browse' and other is 'change'.I m not an expert programmer.I just know html.If u can do this i will be gr8ful to u.mail me the code on developerpk@gmail.com
developerpkApr 19, 2006
Dear Xperts,Its working fi9 for me but one problem is if i want 2 change the upload pic could it change?And i also want if the wrong file is selected for uploading it displays an error.I also want to fix the size of pic not more than 500kb and there are two button one is 'browse' and other is 'change'.I m not an expert programmer.I just know html.If u can do this i will be gr8ful to u.mail me the code on developerpk@gmail.com
an0n1m0usAug 2, 2006
If you don't like AJAX news, piss off, don't read it. Considering it's the most interesting thing to hit web development since standards-based design, many of us are very interested.Personally I use Perl and just recently was looking for an AJAX uploader. There are not many out there. I thought I'd found something with FileChucker but the non-free factor is annoying.
jeremy2Aug 19, 2006
See my reply above for the implementation I wrote/modified. I plan on keeping it totally free, forever.
mcmoiseiJan 24, 2007
Technically seems to be impossible to use pure Ajax to do the job. However targeting the upload form against an i frame and combined with asynchronous calls to display the status is good enough.Here's a nice example!<a class="user" href="http://sean.treadway.info/demo/upload/">http://sean.treadway.info/demo/upload/</a>
rulezgetbentApr 21, 2007
Whatever! this script is great. I actually stumbled across this about 6 months to a year ago. I dont remember, but this works great, and looks clean.
nosretepJan 16, 2008
I would use this, as it does solve a problem, however it's not technically ajax so I can't use it. I'm just going to have to dream about the millions of dollars I would make if only this solution, to my problem, were ajax.
pagadala1Feb 7, 2008
File uploading with AJAX is not available and, it will never come into picture, if AJAX supports file upload you have to give the file name as an input to the AJAX object from your HTML page, then it uploads by taking like textfield.value may be you thinking in that way, What happens you hardcode a System file in your AJAX code and upload to the server without user permission! Will that be bigsecurity flaw right:) So never think of AJAX file upload, even if AJAX provides file upload there should be an alert from AJAX Engine to take permission from the user to upload the file, this will very very annoying to the user, so we need not think about this now!