>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

File Uploads in AJAX (using Dojo and PHP) - file dojo form php script ajax indexphp javascript

 
Registered tutorials: 501
Registered Users: 33128



Rating: 4.2 out of 10 votes cast


  
Category: Ajax and PHP

File Uploads in AJAX (using Dojo and PHP)

Digg this   Post to del.icio.us

Abstract: The article shows how to upload files using Ajax (Dojo Framework) and PHP. It actually gives a very simple copy-n-paste practical example on how to take the right steps

It is easy to upload files using Ajax and PHP. How? I'll try to explain below.

We'll be using some common sense, Dojo Framework for AJAX, HTML, Apache, Javascript, and PHP. Make sure you install Apache and PHP (read other tutorials for that). I'll explain how to setup Dojo (for this tutorial) below. But before we proceed please read and understand the disclaimer below.

DISCLAIMER: I have made every attempt to present accurate information, but I cannot guarantee that inaccuracies will not occur. I (the author) will not be held responsible for any claim, loss, damage or inconvenience caused as a result of any information found on this website (blog).

Make sure you configure PHP to allow file uploads.
  • Fire up your browser and go to http://dojotoolkit.org/. Download Dojo form the website. I've used version 0.4.1 for this tutorial.
  • After downloading the zip file go to the folder where you want to put your file upload code (I've named this file index.php). Unzip the downloaded file in that folder and rename the new folder created (e.g. dojo-0.4.1-ajax.zip) to dojo.
  • Enter the code below in the head (between <head> and </head>) section of your HTML file (that contains file upload form). I'm naming it index.php.

<script language="javascript" type="text/javascript" src="./dojo/dojo.js"></script>


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 3072
Unique Hits: 2643


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 4.3 5.1 27.1 31.7 131.8 151.1
Current 2 2 2 2 2 2
Previous 2 2 36 44 196 233
Nov 29 2 2 42 48 177 198
Nov 28 7 8 0 0 188 213
Nov 27 2 3 61 73 200 224
Nov 26 6 7 0 0 145 170
Nov 25 9 11 49 57 157 184
Nov 24 0 0 0 0 0 0
Nov 23 8 11 39 47 180 209
Nov 22 5 5 42 46 73 78
Highest 15 16 61 73 200 233


Script Execution Time: 4.56069 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2