Home     |      Learn AJAX     |      Forum     |      Register     |      Submit Resource     |      Submit Article      |      Contact Us

Home AJAX-Tips
 

The Hidden Frame Technique

 

Building an Ajax based application is all about the proper use of hidden frame technique. It is a smart way of building an Ajax based application.


You can build a basic looking website but behind that is a powerful JavaScript coding that streams information asynchronously. The user will not see it, but behind the frame is another frame wherein the commands from the browser are received.


Hidden frame starts with the command of the user. The hidden frame interacts with the browser and receives the information. At this stage, the developers are free to determine the reaction of application once it receives a command.


It could be a redirection to another webpage or a prompt that a process is actively working on the client’s request. However, the main goal of JavaScript at this stage is to direct the request of the user to the server.


The request is actually the second stage of the hidden frame technique. The request brings the command of the user which should be followed by the server.


The speed of reaction of the server to the request depends on the power of the server – its hardware components, server applications and other settings are the factors that could affect the performance of the application. That is the reason why the power of Ajax is not really built on bandwidth strength but in the power of the server. With an efficient server, the streaming of data is faster.


The third stage in hidden frame technique for building an Ajax application is the response of the server. Most websites that were built without the hidden frame technique will naturally direct the data to the user which is practical and very easy to configure.


However, the challenge of Ajax is to continuously stream the information to the client side. The problem with hidden frame technique is it does not stream data as a response but the server replies with a webpage.


Compared to data, webpage is a lot heavier so the developer has to ensure that the push from the server should be able to handle a webpage.


The final step in hidden frame technique is another JavaScript call. This time, the JavaScript call does not come from the client but comes from the server. The call contains the webpage as a response to the application.


The JavaScript call will transfer the response of the server which is located in the hidden frame and again transfer them to the visible frame so that the user will see the reply from the server.


The hidden frame technique requires a lot of power from the server. The developer has to ensure that the server have been optimized to receive requests and reply with a webpage. It is a strenuous job for the server and developers but when properly rendered, the developer could stream data efficiently.


Website security should also be better because the hidden frame should be harder to crack by most hackers. The command from the client side is basically a simple request to the server which contains little to no information for the hacker.



Read Next: Speeding Up Data Submission



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links