正在加载图片...
Adam howitt Duo Consulting 7/720061223PM Again, this is by no means complete but gives you an idea of the pre-work to do at this Coding the application The first thing you will want to do is to take each of the sections of your JavaScript design document and make each section its own js file to be included in the head of you document. Smaller chunks make it more obvious where to look when you are trying to debug the application <script src=is/wishlist. js"type="text/javascript"></script> You will need to work through each of those files next and flesh out the JavaScript. If possible, start with the panels least connected and work your way to the most connected panels Assuming all went according to plan during the review how exactly do you make the different types of AJAX calls mentioned above? To recap Non-unique rendered The result from this call is an HTML fragment and is inserted AJAX cal directly into the contents of a given target div. Non-unique means that the result will be cached at the client minimally and at the server too if you have coded your remote handling page to serve cached results Unique rendered AJAX The result from this call is an HTML fragment and is inserted directly into the contents of a given target div. The goal is to serve the latest information or information which is volatile so each request is not cached by the browser or the server Non-unique functional Results from this call is either a simple result or a complex AJAX call object in either XML or a custom string to be parsed by the client. Non-unique means that the result will be cached at the client minimally and at the server too if you have coded your remote handling page to serve cached results Unique functional Results from this call is either a simple result or a complex AJAX call object in either XML or a custom string to be parsed by the client. The goal is to serve the latest information or information which is volatile so each request is not cached by the browser or the server To begin, you must include the prototype. js libraries if you havent already done so <script type="text/javascript" src="3s/scriptaculous -js 1. 6.0/lib/prototype is"></script> This currently loads the current version of the library(at this point 1.6.0) 6/8Adam Howitt Duo Consulting 7/7/2006 12:23 PM } Again, this is by no means complete but gives you an idea of the pre-work to do at this stage. Coding the application The first thing you will want to do is to take each of the sections of your JavaScript design document and make each section its own .js file to be included in the head of your document. Smaller chunks make it more obvious where to look when you are trying to debug the application: <script src="js/wishlist.js" type="text/javascript"></script> You will need to work through each of those files next and flesh out the JavaScript. If possible, start with the panels least connected and work your way to the most connected panels. Assuming all went according to plan during the review how exactly do you make the different types of AJAX calls mentioned above? To recap: Non-unique rendered AJAX call The result from this call is an HTML fragment and is inserted directly into the contents of a given target div. Non-unique means that the result will be cached at the client minimally and at the server too if you have coded your remote handling page to serve cached results. Unique rendered AJAX call The result from this call is an HTML fragment and is inserted directly into the contents of a given target div. The goal is to serve the latest information or information which is volatile so each request is not cached by the browser or the server. Non-unique functional AJAX call Results from this call is either a simple result or a complex object in either XML or a custom string to be parsed by the client. Non-unique means that the result will be cached at the client minimally and at the server too if you have coded your remote handling page to serve cached results. Unique functional AJAX call Results from this call is either a simple result or a complex object in either XML or a custom string to be parsed by the client. The goal is to serve the latest information or information which is volatile so each request is not cached by the browser or the server. To begin, you must include the prototype.js libraries if you haven’t already done so: <script type="text/javascript" src="js/scriptaculous-js- 1.6.0/lib/prototype.js"></script> This currently loads the current version of the library (at this point 1.6.0). 6/8
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有