Home > web development

Now start your IT career

Trivandrum is growing and so the facilities too. Derniertec Venture Pvt Ltd has come up with quality web development job oriented training for freshers. "There is no minimum qualification required to become a successful developer, All you need to know is to read, type and understand basic English. Rest we

Read More

How to do ajax file upload

<html> <head> <title>File Upload with PHP</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.form.js"></script> <script> $(document).ready(function() { $('#FileUploader').on('submit', function(e) { e.preventDefault(); $('#uploadButton').attr('disabled', ''); // disable upload button //show uploading message $("#output").html('<div style="padding:10px"><img src="images/ajax-loader.gif" alt="Please Wait"/> <span>Uploading...</span></div>'); $(this).ajaxSubmit({ target: '#output', success: afterSuccess //call function after success }); }); }); function afterSuccess() { $('#FileUploader').resetForm(); // reset form $('#uploadButton').removeAttr('disabled'); //enable submit button } </script> </head> <body> <div id="theForm"> <div id="output"></div> <form action="uploader.php" id="FileUploader" enctype="multipart/form-data" method="post" > <label>Title <span class="small">Title of the File</span> </label> <input type="text" name="mName"

Read More