AJAX-Tools Tutorials
AJAX-ToolsflXHR for Creative Ajax Based Websites
Flash and Ajax can be considered as two competing developing techniques. After all, Adobe tried to offer RIA programming language through Flex and AIR. Although it had followers because of their impressive interface, its popularity is not the same with Ajax.
Ajax on the other hand has been constantly the target for security experts because of the lack of security in its coding. Ajax is a very complicated programming technique so it is always possible that security measures could be overlooked for the sake of performance.
But Flensend, a group of open-source developers have built a framework that aims to bridge the gap between Ajax and Flash. The open-source framework is called flXHR – a name that combines Flash and XMLHttpRequest. In this framework, the developer could change the XMLHttpRequest with another function which is flXHR.Swf.
This type of command from flXHR works exactly like XMLHttpRequest. The file receives a request from the client side and effectively transmits them to the server. The data would then be returned through the same way and JavaScript will receive the data and display them on the client side.
One of the aims in using flXHR is to improve the sites security. Unlike other frameworks, flXHR is practically a combination of Flash and Ajax. Therefore any security applied to Flash could also be applied to Ajax because of their familiarity. Instead of coding Ajax with a thought of security, the security applied to Flash could also be applied to Ajax.
There is a constant concern for security in this type of framework since it enables developers to look for third party sources of information. The vulnerability of the website when they use cross scripting will always be there. Hopefully, with the integration of Flash, security would be much robust since cross scripting is often the favorite tool for hackers to access the system.
Highly Adaptable
The flXHR framework boasts of its ability to develop APIs for different websites. In fact, one of the first steps of this framework is to change the coding into an API. By developing the initial application through API, codes that could be reused could still be extracted from the application.
Its interoperability to different browsers is guaranteed. Of course there is still a required download for the application to run (Flash Plug-in V9), but almost every computer in the world already has the pre-installed Flash. If it is not updated, a quick download and installation should do the trick.
flXHR could also be used in building APIs that could be integrated with other frameworks. As we have already indicated, flXHR builds an API first before putting together the entire application. Developers could just select a certain part of the application and integrated them as functions to other frameworks.
Conclusion:
If you are looking for a smart framework with reusable codes, then flXHR is perfect for you. This type of framework will require you to code in JavaScript but the framework will translate your coding into different functions that could be used later or integrated with other frameworks.
Sponsored Links
