The company's new project started, and the front-end part of the project was changed from webwork to GWT. So we have been watching GWT these days, combining jquery and prototype that we used before, some ideas are recorded on the blog.
Due to
Recently, because the display speed of the Treeview control in Javascript form is too slow, I used Ajax + Yahoo UI to create a new one. After using Ajax for the first time, we finally implemented a lazy load-type classification tree. The server is a
I wrote a category item on Friday! There is only an IP address in the database. Generally, visitors do not know which city the IP address is from. if there is one more column in the table to store the city, there is no authenticity. how nice is it
Before talking about this, we will first provide various methods to judge through Js.
Various browsers have many names (ie, FF, TT, Maxthon,...), but the kernel is still only
So many! IE kernel, Netscape kernel!
Go to the topic and draw a
Create defa9.9.aspx page
Use sriptmanager and updatapanel to put one in updatapanel, implement Timer, and use two viewstates. viewstate ["Index"] stores the content printed by subscript and viewstate ["content ,,,
Code:
Using system;Using system.
Address: http://blog.csdn.net/hongweigg/article/details/6756278
1. jquery Ajax request. garbled characters are received in the background
You can explicitly set the contenttype encoding to UTF-8, and the background can be decoded normally, for
You need to write an example for your work to call Servlet and run it,
An index. jsp page, a getandpostexample servlet background, and a web. xml configuration file
Index. jsp page
Bytes ---------------------------------------------------------
JSON (JavaScript Object Notation) is a simple data format, which is lighter than XML. JSON is a javascript native format, which means that no special API or toolkit is required to process JSON data in JavaScript. Exercise example ::
First, create
Jquery is an encapsulation of JavaScript, saving programmers from tedious JavaScript code.
Jquery has two common usage methods: Ajax and interface special effects.
In jquery, Ajax communicates with the server through the XMLHTTPRequest object. The
Problem: Use ajax to pass string variables from the front-end page to the server. The content to be transmitted is ABC +, but after receiving the data, use system. Out. println () to output ABC spaces.
Cause: Some Characters in the URL are
I. Load () method (simplest)
Load (URL, [data], [callback])
URL: the address of the loaded page.
Data: Optional. data sent to the server. The format is key/value.
Callback: optional, callback function
1. The simplest application
Front-end
floating advertisement
enter name and birthday
Background
Using system;
Using system. Data;
Using system. configuration;
Using system. collections;
Using system. Web;
Using system. Web.
Static Page
No title page
enter name and birthday
Dynamic page
Protected void page_load (Object sender, eventargs E)
{
// Response. Write ("background data ");
If (request. httpmethod = "Post ")
Ajax application scenarios
1. Form-driven Interaction
For traditional form submission, after entering the content in the text box, click the button. After the background processing is complete, the page is refreshed, and then check whether the
var xmlhttpreq; // create the XMLHTTPRequest object function createxmlhttprequest () {If (window. XMLHttpRequest) {// Mozilla xmlhttpreq = new XMLHttpRequest ();} else if (window. activexobject) {// IE browser try {xmlhttpreq = new activexobject
Ajax is usually used for asynchronous processing, but in some cases, Ajax synchronization is used to process data. For example, when detecting data with JS, Ajax is required to submit a request to obtain whether the user exists in the database, this
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service