Save info   Get password
Home Submit your blog Edit Account Rules RSS-Archive Contact



2007-12-03 23:32:00
Should I use an HTTP GET or POST for my AJAX calls?AJAX requests should use an HTTP GET request when retrieving data where the data will not change for a given request URL.An HTTP POST should be used when state is updated on the server. This is in line with HTTP idempotency recommendations and is highly recommended for a consistent web application architecture.



2007-12-03 23:30:00
Should I use XML or text, JavaScript, or HTML as a return type?It depends. Clearly the 'X' in AJAX stands for XML, but several AJAX proponents are quick to point out that nothing in AJAX, per se, precludes using other types of payload, such as, JavaScript, HTML, or plain text.* XML - Web Services and AJAX seem made for one another. You can use client-side API's for downloading and parsing the XML content from RESTful Web Services. (However be mindful with some SOAP based Web Services architectures the payloads can get quite large and complex, and therefore may be inappropriate with AJAX techniqes.)* Plain Text - In this case server-generated text may be injected into a document or evaluated by client-side logic.* JavaScript - This is an extension to the plain text case with the exception that a server-side component passes a fragment of JavaScript including JavaScript object declarations. Using the JavaScript eval() function you can then create the objects on the client. JavaScript



2007-12-02 22:44:00
What JavaScript libraries and frameworks are available? There are many libraries/frameworks out there (and many more emerging) that will help abstract such things as all the nasty browser differences. Three good libraries are The Dojo Toolkit, Prototype, and DWR.* The Dojo Toolkit contains APIs and widgets to support the development of rich web applications. Dojo contains an intelligent packaging system, UI effects, drag and drop APIs, widget APIs, event abstraction, client storage APIs, and AJAX interaction APIs. Dojo solves common usability issues such as support for dealing with the navigation such as the ability to detect the browser back button, the ability to support changes to the URL in the URL bar for bookmarking, and the ability to gracefully degrade when AJAX/JavaScript is not fully support on the client. Dojo is the Swiss Army Knife of JavaScript libraries. It provides the widest range of options in a single library and it does a very good job supporting new and older brows



2007-12-02 22:42:00
What do I need to know to create my own AJAX functionality?If you plan not to reuse and existing AJAX component here are some of the things you will need to know.Plan to learn Dynamic HTML (DHTML), the technology that is the foundation for AJAX. DHTML enables browser-base real time interaction between a user and a web page. DHTML is the combination of JavaScript, the Document Object Model (DOM) and Cascading Style Sheets (CSS).* JavaScript - JavaScript is a loosely typed object based scripting language supported by all major browsers and essential for AJAX interactions. JavaScript in a page is called when an event in a page occurs such as a page load, a mouse click, or a key press in a form element.* DOM - An API for accessing and manipulating structured documents. In most cases DOM represent the structure of XML and HTML documents.* CSS - Allows you to define the presentation of a page such as fonts, colors, sizes, and positioning. CSS allow for a clear separation of the presentation



2007-12-02 22:39:00
Is it possible to set session variables from javascript?It's not possible to set any session variables directly from javascript as it is purely a client side technology. You can use AJAX though to asyncronously...Cannot parse XML generated by JSP I am generating an XML using JSP, when i run the JSP in IE it shows the XML as per DOM, but when i try to parse it using Javascript , the command xmldoc.documentElement...



2007-11-30 23:39:00
What is the difference between proxied and proxyless calls?Proxied calls are made through stub objects that mimic your PHP classes on the JavaScript side. E.g., the helloworld class from the Hello World example.Proxyless calls are made using utility javascript functions like HTML_AJAX.replace() and HTML_AJAX.append().



2007-11-30 23:38:00
Do Ajax applications always deliver a better experience than traditional web applications?Not mandatory. Ajax gives interaction designers more flexibility. However, the more power we have, the more caution we must use in exercising it. We must be careful to use Ajax to enhance the user experience of our applications, not degrade it.



2007-11-30 23:34:00
Did Adaptive Path help build Google's Ajax applications?Neither Adaptive Path nor Google invented Ajax. Google's recent products are simply the highest-profile examples of Ajax applications. Adaptive Path was not involved in the development of Google's Ajax applications, but we have been doing Ajax work for some of our other clients.



2007-11-30 23:34:00
Do I really need to learn JavaScript?Basically yes if you plan to develop new AJAX functionality for your web application. On the other hand, JSF components and component libraries can abstract the details of JavaScript, DOM and CSS. These components can generate the necessary artifacts to make AJAX interactions possible. Visual tools such as Java Studio Creator may also use AJAX enabled JSF components to create applications, shielding the tool developer from many of the details ofAJAX. If you plan to develop your own JSF components or wire the events of components together in a tool it is important that you have a basic understanding of JavaScript. There are client-side JavaScript libraries (discussed below) that you can call from your in page JavaScript that abstract browser differences. Object Hierarchy and Inheritance in JavaScript is a great resource for a Java developer to learn about JavaScript objects.



2007-11-30 23:33:00
Should I use an http get or post for my ajax calls?AJAX requests should use an HTTP GET request when retrieving data where the data will not change for a given request URL. An HTTP POST should be used when state is updated on the server. This is in line with HTTP idempotency recommendations and is highly recommended for a consistent web application architecture.



2007-11-30 23:11:00
Is there any way that an AJAX Object can get back a record set?You could build an XML document out of your recordset and send that back to the server, say you had a redord set for a “user” with the following details (name, surname, age, email), you could build an xml document like this:Code:ByronTymvios25email@address.comUserSomeone39myAddy@address.comYou can add as many records as you have in your recordset, then once the client has received it you can use javascript to iterate over the ’s in the xml.


Which browsers support AJAX?
2007-11-29 23:08:00
Internet Explorer 5.0 and up, Opera 7.6 and up, Netscape 7.1 and up, Firefox 1.0 and up, Safari 1.2 and up, among others.
Read more: AJAX , browsers

What must be done to use an AJAX code be used across different browsers?
2007-11-29 23:06:00
Internet Explorer uses an ActiveXObject, while other browsers uses the built-in JavaScript object called XMLHttpRequest.code:
Read more: AJAX , different

What restrictions are placed on the location of a package statement within a source code file?
2007-11-29 23:05:00
Package statement must appear as the first line in a source code file and one public class declaration.
Read more: within , package

What must be done to use an AJAX code be used across different browsers?
2007-11-29 23:04:00
Internet Explorer uses an ActiveXObject, while other browsers uses the built-in JavaScript object called XMLHttpRequest.code
Read more: different , AJAX

What is the role of AJAX in enhancing user experience?
2007-11-29 23:02:00
AJAX is not a new technology but a combination of several existing technologies in a new way. These include HTML, CSS, DOM, XML, XSLT, XMLHttpRequest and Javascript. The acronym AJAX stands for Asynchronous Javascript and XML. AJAX is based on open standards supported by many browsers and platforms. AJAX is a new paradigm for building web application.
Read more: experience , AJAX

Is the server or the client in control in AJAX
2007-11-29 23:00:00
It depends. With AJAX the answer is more in between. Control can be more centralized in a server -side component or as a mix of client-side and server-side controllers.Centralized server-side controller - When having a more centralized controller the key is to make sure the data in client-side page is in sync with that of the server. Some applications may keep all the state on the server and push all updates to client DOM via a simple JavaScript controller.Client and server-side controllers - This architecture would use JavaScript to do all presentation related control, event processing, page manipulation, and rendering of model data on the client. The server-side would be responsible for things such as business logic and pushing updated model data to the client. In this case the server would not have intimate knowledge of the presentation short of the initial page that would be sent to the client page request.


How is user interfaces powerful in AJAX?
2007-11-29 22:56:00
AJAX helps in refreshing / requerying parts of web page without reloading the entrie webpage there by increasing performance and ultimately user interface
Read more: AJAX

ASP.NET AJAX 1.0 with . NET Framework 3.5.
2007-11-26 23:07:00
Version 3.5.11119.0 for .NET Framework 3.5 and Visual Studio 2008Setting up the environment to use the Toolkit:Follow the instructions to download and install Visual Studio 2008 from here. Download the AjaxControlToolkit-Framework3.5.zip or AjaxControlToolkit-Framework3.5-NoSource.zip from the Toolkit Releases page. Features:JavaScript IntelliSense support: We have added reference tags to all Toolkit JavaScript files that enables you to take advantage of new features in Visual Studio 2008. With the multi-targeting support in this Visual Studio Beta, IntelliSense will be available for the ASP.NET AJAX 1.0 flavor of the Toolkit as well. This article discusses the reference tag feature in detail. Extender designer support: Enhanced designer support for Toolkit controls using the new "Add Extender" user interface. Animations and PageMethods in design mode: Design mode workarounds that targeted Visual Studio 2008 Beta 2 issues when using Animations and "Add PageMethod" support in the Toolki



2007-11-21 23:01:00
What are the different frameworks available In AJAX.As i have been assigned for implementing Ajax in existing Complex JSF application, my conclusion is to go for frameworks and tools if you are planning to build a fresh application.Otherwise just apply trics for incorporating ajax features.The heart of this AJAX is to validate fields without refreshing the page.else every thing thing is just javascript and CSS.DWR:(Direct Web Remoting), GWT:Google Web Toolkit (GWT), AjaxTags,AJAX4JSF,JSON-RPC-Java, AjaxAnywhere,Echo 2,and Zimbra



2007-11-21 22:58:00
What are the steps for handling concurrent requests in AJAX?it can be done by creating the XMLHTTPRequest object from within an inner function, instead of creating a seperate function for making a new XmlHttprequest object withing the same page.


Few reasons of AJAX not running on remote server.
2007-11-19 23:19:00
You can put the dll's in the bin folder but your applications trust level should be at "fully trust" or you have to install the dll in the Gac.The AJAX extensions was not installed. So I downloaded the AJAX extensions to the remote server . And that solved the problem. Everything works fine on the remote server now
Read more: running

AJAX Flow Chart
2007-10-31 00:07:00
Basically, a regular AJAX -like implementation includes two main components: a client HTML page with JavaScript code making an AJAX call and receiving a response, and a remote page that can accept a request and respond with the required information. The JavaScript code on the client page is responsible for instantiating an XmlHttp object, then providing this object with a callback method which will be responsible for processing the received information, and finally, sending a request to the remote page via the XmlHttp object. All this is done by the JavaScript code.Our approach is intended for use in ASP.NET applications, and considers the following possible scenarios:AJAX calls may be performed on different ASP.NET pages of the web application to different remote pages;A remote page URL may contain dynamically calculated parameters, and it may be more convenient to build a URL string in the code-behind of the ASP.NET page;A remote page may respond with a complex data requiring parsing
Read more: Chart

Download AJAX
2007-10-28 23:52:00
ASP.NET AJAX Essential ComponentsASP.NET 2.0 AJAX Extensions 1.0Download and install ASP.NET AJAX Extensions today! This download installs the framework for developing and running AJAX-style applications with either server-centric or client-centric development models and is fully supported by Microsoft. You must install this before installing the ASP.NET Futures release or the ASP.NET AJAX Control Toolkit.Download ASP.NET AJAX Extensions 1.0http://go.microsoft.com/fwlink/?linkid=77296Download the Documentationhttp://www.asp.net/ajax/documentation/AspNet_AJAX_Documentation.zipView the Documentationhttp://www.asp.net/ajax/documentation/When you download the documentation, be sure to open the Readme.htm file for setup instructions. The download includes working samples to help you get the most out of ASP.NET AJAX.ASP.NET AJAX Control ToolkitThe ASP.NET AJAX Control Toolkit is a shared-source community project consisting of samples and components that make it easier than ever to work with


How does AJAX work
2007-10-28 23:39:00
How does AJAX work?The core idea behind AJAX is to make the communication with the server asynchronous, so that data is transferred and processed in the background. As a result the user can continue working on the other parts of the page without interruption. In an AJAX-enabled application only the relevant page elements are updated, only when this is necessary.Initial request by the browser – the user requests the particular URL. The complete page is rendered by the server (along with the JavaScript AJAX engine) and sent to the client (HTML, CSS, JavaScript AJAX engine). All subsequent requests to the server are initiated as function calls to the JavaScript engine. The JavaScript engine then makes an XmlHttpRequest to the server. The server processes the request and sends a response in XML format to the client (XML document). It contains the data only of the page elements that need to be changed. In most cases this data comprises just a fraction of the total page markup. The AJAX en


What Browsers does HTML_AJAX work with?
2007-12-10 23:46:00
As of 0.3.0, all the examples that ship with HTML_AJAX have been verified to work with* Firefox 1.0+* Internet Explorer 5.5+ (5.0 should work but it hasn't been tested) Most things work with* Safari 2+* Opera 8.5+


How do I test my AJAX code?
2007-12-10 23:46:00
There is a port of JUnit for client-side JavaScript called JsUnit
Read more: AJAX

Does Java have support for Comet style server-side push?
2007-12-09 23:19:00
Current AJAX applications use polling to communicate changes data between the server and client. Some applications, such as chat applications, stock tickers, or score boards require more immediate notifications of updates to the client. Comet is an event based low latency server side push for AJAX applications. Comet communication keeps one of the two connections available to the browser open to continously communicate events from the server to the client. A Java based solution for Comet is being developed for Glassfish on top of the Grizzly HTTP connector.


How do I create a thread to do AJAX polling?
2007-12-09 23:17:00
JavaScript does not have threads. JavaScript functions are called when an event happens in a page such as the page is loaded, a mouse click, or a form element gains focus. You can create a timer using the setTimeout which takes a function name and time in milliseconds as arguments. You can then loop by calling the same function as can be seen in the JavaScript example below.function checkForMessage() { // start AJAX interaction with processCallback as the callback function } // callback for the request function processCallback() { // do post processing setTimeout("checkForMessage()", 10000); }Notice that the checkForMessage will continue to loop indefinitely. You may want to vary the increment the interval based on activity in the page or your use cases. You may also choose to have logic that would break out of the loop based on some AJAX response processing condition.


Is AJAX code cross browser compatible?
2007-12-07 23:13:00
Not totally. Most browser s offer a native XMLHttpRequest JavaScript object, while another one (Internet Explorer) require you to get it as an ActiveX object.
Read more: compatible , AJAX

Page 1 of 3 « < 1 2 3 > »
eXTReMe Tracker