With the increasing popularity of frameworks, many very good open-source frameworks can be found in the market for background business logic frameworks and WEB presentation layer frameworks. However, I have always been thinking about a problem. For Java, only the frameworks under java can be used. For Microsoft, only the frameworks developed under its system can be used, is it possible to use them together?
What is hybrid use? The graphic presentation layer uses the static page suffix (.htm), while the background can be the business layer model built by java or the business layer model built by Microsoft Donet. No matter what model is used in the background, as long as the provider provides enough interfaces for my access, you can call different architecture interfaces to implement the content on the presentation layer.
JQuery is a very popular Ajax framework recently. Its specific application and functions are not described here, but we can use its embedded Ajax method to call the background server code, communication between the client and the server has been implemented. Because the client is a static page, it calls the method of the server through WebService. Obviously, the client can achieve mixed use regardless of the language of the server.
This hybrid use can be defined as the connection architecture model between the WEB end and the background business logic end.
This article only discusses JQuery's usage of interactive communication with the server at the Ajax level, and does not involve other usage of JQuery.
Here is a small example:
Note: My javascript and JQuery basics are poor, so the example is relatively simple.
Environment Description:
Asp.net 2.0
External Class Library: System. Web. Extensions. dll
JQuery framework: 1.3
Step 1: Create a WebService and modify Web. config
Introduce System. Web. Extensions. dll
Under <system. web>:
Copy to ClipboardReference: [www.bkjia.com] <Remove verb = "*" path = "*. asmx"> </remove>
<Add verb = "*" path = "*. asmx"
Type = "System. Web. Script. Services. ScriptHandlerFactory, System. Web. Extensions,
Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "/>
</HttpHandlers>
- Three pages in total:
- Previous Page
- 1
- 2
- 3
- Next Page