Archive

Archive for the ‘Ajax’ Category

Create An Ajax Style File Upload

January 1st, 2010 Ashesh No comments

If you visit Asp.net Ajax Forum, you will find hundreds of request on File Upload Control that it does not give Ajax version of the page when it is placed in an UpdatePanel. Certainly, it is not possible, as the XMLHTTPRequest object that is used internally to post the form does not support file upload. In this post I will show you how to create Ajax like version of the file upload. The trick is very simple, I will use an Iframe to upload the file so the whole page does not get refreshed and when the post is in progress it will show a dummy progress. The following shows you the screenshots of the solutions: Read more…

Categories: Ajax, How to... Tags:

very easy first AJAX web application

November 27th, 2009 Ashesh No comments

Let me explain why i selected such title. When writing AJAX scripts there is a part of code that always have to be included, it is pretty much like DOCTYPE in html, you do not have to understand it, just copy and paste, more over our code will be a function which takes no parameters and only returns one as XMLHttpRequest. If you do not know what this object is suggest you reading my introduction to AJAX web development.

Creating AJAX Object

Like i said you do not need to know what this function will do but anyway i will explain it shortly. This function is needed because Microsof Internet Explorer has it’s own idea of how AJAX in browsers should be initialized, in fact other browsers do not require to initialize AJAX XMLHttpRequest class at all, while IE want it to be initialized as ActiveX object. Fortunately this is the only difference between AJAX scripts for Internet Explorer and any other web browser which supports JavaScript. Read more…

Categories: Ajax Tags:

What is Ajax?

November 26th, 2009 Ashesh No comments

Ajax is quite new web development technology, it became quickly very popular, but still a lot of people do not know what it is and how to make a use of it. In this short article i want to present you my views on it, especially when to use Ajax, because often people use this powerful technology in wrong way which may hurt your SERP rankings.

Are you one of this people? Read on to find out.

To understand when to use Ajax, obviously first we need to know what it is and what it does. Ajax is acronym of Asynchronous JavaScript and XML, this name may be confusing because we can use Ajax without XML, so i guess XML means here only some kind of markup language to describe processed data by JavaScript, not necessary XML data that we know it can be HTML code as well. Read more…

Categories: Ajax Tags:

AJAX FILE UPLOAD – Uploading local files with AJAX/Javascript to a server

November 4th, 2009 Ashesh 2 comments

Many people say uploading files with AJAX is impossible! Well, they’re wrong :-)

Granted this solution only works with FireFox/Mozilla. And the user has to change a setting in “about:config” and accept the advanced access privileges.

Anyway, such an AJAX file upload is only suitable for restricted area stuff, such as Content Management Systems, Group-Ware etc., so users can be briefed before actually using it. Read more…

AJAX – Asynchronous JavaScript and XML

November 4th, 2009 Ashesh 1 comment

AJAX

Asynchronous JavaScript and XML

AJAX is not a new programming language, but a new technique for creating better, faster, and more interactive web applications.

With AJAX, a JavaScript can communicate directly with the server, with the XMLHttpRequest object. With this object, a JavaScript can trade data with a web server, without reloading the page.

AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages.

The AJAX technique makes Internet applications smaller, faster and more user-friendly. Read more…

Categories: Ajax Tags:

Refreshing DIV content with AJAX

October 31st, 2009 Ashesh No comments

Normally, when we need to update the certain part of the page we do refresh the whole page. But it seems to be inefficient when we need to update a small portion of the page and we are refreshing the whole.Using the div tag in the page or tableless page have made easy for programmer to refresh a portion or division by using DIV with AJAX.

Here i have taken an example to show how to use AJAX in DIV.

In the example, there are three files (in the same folder):
ajax.js
index.html
boo.php
Read more…

Categories: Ajax, How to..., Know more Tags:
Get Adobe Flash playerPlugin by wpburn.com wordpress themes