Hello, in this post we will conceptually understand the AJAX event and how use inside the Scriptcase.
- AJAX? After all, what is this?
AJAX features, very broadly speaking, can be resume up in three words: usability, speed, and interactivity. A suite of technologies that enable a more productive and rich user interface.
In conception, using AJAX need to knowing JS well, work with, DOM, XML and CSS.
- Okay, but how does it work?
To understand this , first we need understand as a common web application it’s work, what basically occurs is that the search engine will fetch information about the server and return to the client.
In AJAX is a bit different, I say this why, in the process page loading , the entire load of processed data is passed to the client. When a user makes a request, the search and return is make in JS simultaneously, so it is not necessary to make “reload” the page all the time.
However, it is worth noting that the insert process with ajax becoming a bit slower,since too much information is preloaded, but in the end, only the data will need to be loaded, resulting in a site much more agile.
|Common web application||AJAX application|
( I stress that throughout this process the user can not do anything but wait for the results of their request to be loaded, this process, besides being tedious, ends up requiring a lot of resources from the server)
- AJAX Events within Scriptcase? As?
The market currently offers several frameworks for those who want to work with Ajax, many educational and easy to apply, even comes with some tools in Ajax components that can easily be attached to an application, such as Scriptcase. Within its grid component has Scriptcase some of these specific Ajax which gives much higher quality applications developed for it, in addition, there is also a very large user to program these components only where it is necessary parameterization them.
Using AJAX reduces the amount of unnecessary data traffic with the server thereby speeding up application processing. It allows individual data components on a page to be updated without the need to refresh the entire page.
The following events are available in Scriptcase.
- onChange – This event fires when the field has focus and the field value is changed and the focus is then directed to another object.
- onClick – This events fires when the field is clicked.
- onBlur – This events fires when the field has focus, the field value is NOT changed and the focus is directed to another object.
- onFocus – This events fires when the field has focus.
For more information about ajax within SC, we also have some handy tutorials that demonstrate usage within our environment, feel free to read:
If you still do not know, Scriptcase is a solution for web application development and business intelligence reporting in a fast and collaborative way.
Download and come try out our tool!