background preloader


Facebook Twitter

JavaScript Ajax Library - Components for Rich Web UI - Complete Suite of Ajax Controls, File Uploader, Scheduler, Gantt. Ajax Image Upload without Refreshing Page using Jquery. Are you looking for ajax file/image upload and preview without refreshing page using Jquery.

Ajax Image Upload without Refreshing Page using Jquery.

I had implemented this ajax form submitting using jquery.form plugin and used Arun Shekar's image cropping PHP code for uploading images. Just five lines of JavaScript code, Using this you can upload files, image and videos. Download Script Live Demo Javascript Code$("#photoimg").live('change',function(){})- photoimg is the ID name of INPUT FILE tag and $('#imageform').ajaxForm() - imageform is the ID name of FORM. Index.php Contains simple PHP and HTML code. <form id="imageform" method="post" enctype="multipart/form-data" action='ajaximage.php'> Upload image <input type="file" name="photoimg" id="photoimg" /></form> Sample database design for Users.

Users Contains user details username, password, email, profile_image and profile_image_small etc. ajaximage.php Contains PHP code. <? Db.php Database configuration file, modify username, password, database and base url values. New Tricks in XMLHttpRequest2. Introduction One of the unsung heros in the HTML5 universe is XMLHttpRequest.

New Tricks in XMLHttpRequest2

Strictly speaking XHR2 isn't HTML5. However, it's part of the incremental improvements browser vendors are making to the core platform. I'm including XHR2 in our new bag of goodies because it plays such an integral part in today's complex web apps. Turns out our old friend got a huge makeover but many folks are unaware of its new features. This tutorial highlights some of the new features in XMLHttpRequest, especially those that can be used for working with files.

Fetching data Fetching a file as a binary blob has been painful with XHR. The old way to fetch an image: While this works, what you actually get back in the responseText is not a binary blob. Specifying a response format In the previous example, we downloaded the image as a binary "file" by overriding the server's mime type and processing the response text as a binary string. Xhr.responseType xhr.response Much nicer!

ArrayBuffer responses. DHTML JavaScript TreeGrid Control with Ajax Support - dhtmlxTreeGrid. DhtmlxTreeGrid is a cross-browser JavaScript treegrid component designed to represent and edit tabular data in a hierarchical view.

DHTML JavaScript TreeGrid Control with Ajax Support - dhtmlxTreeGrid

It is based on dhtmlxGrid PRO and combines treeview and editable datagrid. A rich JavaScript API brings great flexibility to dhtmlxTreeGrid, allowing you to create completely customizable, Ajax-based treetables with expandable rows. Advanced data entry capabilities make the treegrid more interactive and let users enter and edit table data in an intuitive way. Live demo Themes: DHX Sky Blue DHX Blue Modern Gray Double-click or [F2] on a cell to edit. Fast Performance with Large Data Sets The ability to dynamically expand and collapse table rows assigned to the corresponding tree items makes this treegrid control a perfect solution for displaying treetables with an unlimited number of rows.

Ajax Support and Server-Side Integration Feature Rich JavaScript TreeGrid You can use dhtmlxTreeGrid as an individual component or as a part of dhtmlxSuite PRO library. Features.