Posts Tagged ‘AJAX’

jQuery Ajax – Handling unauthenticated requests via Ajax

jQuery Ajax - Handling unauthenticated requests via Ajax
Since few days I am working on a small project where I have to deal with lot of Ajax requests. The whole UI is designed such that only appropriate parts are refreshed with required information through Ajax.The application needs user authentication before accessing any part of it. Although this is easy to achieve in any MVC ...

Struts 2 Ajax Tutorial with Example

Struts 2 Ajax Tutorial with Example
Welcome to the last part of 7 article series of Struts 2 Framework tutorials. In previous article we saw how to implement File Upload functionality in Struts 2. In this article we will see how we can implement Ajax support in a webapplication using Struts2 framework.AJAX support in Struts 2 Struts 2 provides built-in support to AJAX using Dojo Toolkit library. If you are new ...

jQuery AJAX Tutorial, Example: Simplify Ajax development with jQuery

jQuery, the JavaScript library provides some powerful set of jQuery AJAX API's to handle AJAX requests. The normal way of making AJAX calls using JavaScript is a bit odd as you have to first create an XMLHttpRequest object that depends on the browser and then make an AJAX call. Also sending a form data using AJAX is also bit difficult if we use normal ...

Handling Session timeout & other server http errors in AJAX

Handling Session timeout & other server http errors in AJAX
AJAX has really changed the way we build web applications.When I surf internet today, I find almost all the websites Ajaxified in some way. Writing an AJAX application is as simple as writing simple JavaScript methods and some server side code. I have been writing AJAX codes since a long time now and believe me tge most ...

AJAX reloaded: Push Technology with Lightstreamer and Comet.

Nowadays, Web 2.0 has became a buzz word on internet. Lot of websites that you browser have that "rich" user interface with jazzy fonts and logos and ajax/javascript effects. AJAX has really changed the way we surf on internet. You see any cool web application like GMail or Google Reader, they look much like a ...

AJAX cache problem in IE

Few days back I was working on a requirement where in a webpage one table was getting populated through AJAX. This table was getting refreshed every 5 mins as it was showing some real time data being processed in back end.To my surprise, the data in the table were not being refreshed and the output that I was getting was not the one that I ...

AJAX Post Method example using Javascript & jQuery

Usually AJAX requests are send through GET method. This is because there are few parameters that one send while sending a request through AJAX and also it is relatively easy to create and send a GET method request. Following code is used generally to create a GET request through AJAX.function getXMLHttpRequestObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try ...

RPC in Javascript using JSON-RPC-Java

RPC in Javascript using JSON-RPC-Java
Remote procedure call (RPC) in javascript is a great concept of creating rich web applications. First we will see some background about RPC using JavaScript Object Notation (JSON). See following quote from Wikipedia entry of JSON-RPC. JSON-RPC is a remote procedure call protocol encoded in JSON. It is a very simple protocol (and very similar to ...

Ajax Style File Uploading using Hidden iFrame

File uploading using AJAX is not possible. AJAX doesn't actually post forms to the server, it sends selected data to the server in the form of a POST or GET request. As javascript is not capable of grabbing the file from the users machine and sending it to the server, it's just not possible with AJAX. You have to resort to regular old form submit.If ...