Archive
NOD32 latest escalation ID [February 25, 2009]
Username:EAV-11277739
Password:jxpv4nb3fe
Username:EAV-12542115
Password:xe5nj2ex3k
Username:EAV-11277755
Password:6pjw2t73j7
Username:EAV-11278279
Password:4a563k4kkb
Username:EAV-11278835
Password:5t85avp36r
Username:EAV-12542225
Password:td4s2fbvrr
Username:EAV-12542239
Password:8fxv4tu7tn
Username:EAV-11277756
Password:jvs4xm78am
Username:EAV-12542127
Password:x8vskjt87a
Username:EAV-11247051
Password:46h5cv73ua
16 outstanding Web design site teach you
We all hope that their site is pretty special, in fact, its design is something of your favorite website is, I think we on the basic code is available, but from an excellent site designer there is still a distance, It does not matter, as long as a good guide, good Let's website can also design their own. http://sixrevisions.com/ Jacob Gube in his blog readers to seek the views, summed up the http://sixrevisions.com/web_design/16_sites_web_design_inspiratio/ 16个excellent site design Site . For all foreigners may not like something, but it is undeniable that some things they really deserve Let's study.
Following is the profile of the 16 sites, we hope to help:
1, http://www.thebestdesigns.com/ The Best Designs
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh5.ggpht.com/Sonny.zhang87/SE9UVAXxB-I/AAAAAAAAATw/hZdCg-2Wg48/s800/1. jpg mg
The Best Designs is a ready-made high-quality XHTML view of the excellent design and Flash web site, the site marking and design of each of the keywords (such as bold, and color, or with a better CSS) To give readers more easily get their wish to search things.
2, http://cssremix.com/ CSS Remix
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh4.ggpht.com/Sonny.zhang87/SE9UWcqb-gI/AAAAAAAAAT4/z0M9dD8YlhM/s800/2.jpg [ / img
CSS Remix is a (according to their own profile) Web 2.0 Best Design Nongchao Er. Of course, the site also includes some non-Web 2.0 theme design. CSS Remix of readers more than 14,000 subscribers, where a designer can access the design work of other designers, depth exchanges, is a Need for exchange platform.
3, http://cssmania.com/ CSS Mania
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh5.ggpht.com/Sonny.zhang87/SE9UWzCqmhI/AAAAAAAAAUA/4oTC0JS8JzY/s800/3.jpg
CSS Mania is a collection of CSS-based page design a website to collect good after they have carried out regularly updated. Up to now, has collected 10,000 designer's works. May be due to excessive collection of works because of uneven quality of works, many people grasp the handle.
4, http://screenfluent.com/ screenfluent
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh4.ggpht.com/Sonny.zhang87/SE9UXkfu9RI/AAAAAAAAAUI/XovaPgHJ3jY/s800/4.jpg
screenfluent is a beautiful page on the site, is special about a modal window preview, to give readers visual effects experience. Has collected 7,000 selected design, has rich connotations.
5, http://www.screenalicious.com/ Screenalicio.us
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh5.ggpht.com/Sonny.zhang87/SE9UYq-7XnI/AAAAAAAAAUQ/oi_vmz_RQBQ/s800/5.jpg [ / img
Screenalicio.us has more than 9,800 reference design, but also points readers to the function, divided into five out, so readers can also design a selective refer to the score.
6, http://www.oswd.org/ Open Source Web Design
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh3.ggpht.com/Sonny.zhang87/SE9UZFsXC6I/AAAAAAAAAUY/V-LgDu51odw/s800/6.jpg [ / img
Open Source Web Design a shared community, members can upload your own design code-sharing to the public. Downloading code is not unlimited free, 1 OSWD (do not know the meaning of this unit) following the design of the download is free. Members can download this site's design code, look.
7, http://onepagelove.com/ One Page Love
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh3.ggpht.com/Sonny.zhang87/SE9UZgb5goI/AAAAAAAAAUg/WGtQudpQdPk/s800/7.jpg
One Page Love is a basic page design of the exhibition hall to display the contents include: the beautiful, creative Web sites and applications. Categories including business, moderate, news, etc., etc., including integrated relatively miscellaneous.
8, http://www.fullsingle.com/ FullSingle
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh6.ggpht.com/Sonny.zhang87/SE9UatpkMII/AAAAAAAAAUo/dUew_7AXTNg/s800/8.jpg
FullSingle and One Page Love , is on the single-page design of the site, the site of each page will appear as outstanding works selected profile, to tell you about these designs What, what good such.
9, http://onepagefolios.com/ One Page Folios
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh4.ggpht.com/Sonny.zhang87/SE9UbZFvNnI/AAAAAAAAAUw/9z10kja3zZQ/s800/9.jpg
One Page Folios is also on the design of the single-page, single-page summary is a combination of site design and development of the site, the inside has been more than 800 groups in the portfolio for reference.
10, http://wel
ovewp.com/ We Love WP
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh3.ggpht.com/Sonny.zhang87/SE9Ud_k0a4I/AAAAAAAAAU4/DT-gD6AFdP4/s800/10.jpg [ / img
Wordpress for the use of the blogger, this site is worthy of collection. We Love WP will share some of the top wordpress designs, of course, also shared some pretty wordpress theme.
11, http://cssdivine.com/ CSS Divine
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh5.ggpht.com/Sonny.zhang87/SE9UfPARqRI/AAAAAAAAAVA/9YHAYHxeYZU/s800/11.jpg
CSS Divine is a paradise based on the design of CSS, CSS kinds of design complete, the right Sidebar useful in various colors make the Tag, click on the search based on the color you want the CSS design. Categories include arts, business, clean and business.
12, http://www.designsnack.com/ Design Snack
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh5.ggpht.com/Sonny.zhang87/SE9Uf8MOzYI/AAAAAAAAAVI/rDueL9p6BA4/s800/12.jpg
Design Snack since the superscript: You can control the design architect. Like The Best Designs , this is also a XHTML and Flash on the excellent site design, in this site, you can customize the way to display all kinds of design, a design for a vote, or Color is a tab to browse the design.
13, http://www.strangefruits.nl/ SF art & design portal
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh3.ggpht.com/Sonny.zhang87/SE9UhLajFnI/AAAAAAAAAVQ/n8FLjSMkAyo/s800/13.jpg
SF art & design portal is a portal on the web site design, unique, innovative and artistic temperament of the design features of this site. You can by category, style, color, national or even visit the design.
14, http://designshack.co.uk/gallery/all/ Design Shack
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh6.ggpht.com/Sonny.zhang87/SE9UiC6mLcI/AAAAAAAAAVY/5NlJgm3MhFM/s800/14.jpg
Design Shack is exclusively designed to provide top quality based on the CSS website, come to the fore the works is they're looking for. The site also provides tutorials and design of the lessons learned.
15, http://www.cssloaf.com/ CSSloaf
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh6.ggpht.com/Sonny.zhang87/SE9Uim4gYJI/AAAAAAAAAVg/4lKU9CKUO9s/s800/15.jpg
Others collected a good thing, CSSloaf collect once, it collected 35 of the good things website design, so we do not need to read elsewhere. The site features is the extraordinary display of maps, make clear at a glance.
16, http://www.edustyle.net/ eduStyle
http://www.jianbitou.com/post/16_sites_web_design_inspiratio.html http://lh4.ggpht.com/Sonny.zhang87/SE9UjrAS6uI/AAAAAAAAAVo/kWZXdqZvvmU/s800/16.jpg
Edu see in the know that this site is devoted to educational institutions which exist, it focuses on higher education for the design of the site, showing the best design.
20 Websites To Help You Learn and Master CSS
CSS can be both a tricky and easy to learn. The syntax itself is easy, but some concepts can be difficult to understand.
This article features 20 excellent websites to help you "grok" CSS. There’s a wide range of websites included – from blogs to directory-style lists and websites that focus on one particular topic related to CSS.
1. A List Apart CSS Topics
A List Apart CSS Topics – screen shot.
A List Apart, the premier site to read articles about web design and best practices, has a collection of articles on the topic of CSS dating back to 1999. Most articles are geared towards intermediate to advanced developers who put a strong emphasize on standards-compliant designs.
2. CSS Help Pile
CSS Help Pile – screen shot.
CSS Help Pile is an aggregate of CSS resources, tips, and how-to’s. The site is well-organized and a wonderful resource for any level of expertise. There’s a category for beginners, browser bugs, and short reviews of CSS books.
3. CSS Basics
CSS Basics – screen shot.
CSS Basics is formatted like a book with 18 chapters dedicated to educating readers about fundamental CSS concepts. The writing is clear and succinct – making it a great resource for those just starting out. All 18 chapters can be printed or downloaded in PDF format.
4. Holy CSS Zeldman!
Holy CSS Zeldman! – screen shot.
Holy CSS Zeldman (not a site by Jeffrey Zeldman) is a useful collection of resources that link to standards-based CSS tutorials, tools, and layouts.
5. Eric Meyer: CSS
Eric Meyer: CSS – screen shot.
Here’s a collection of works by Eric Meyer (acclaimed web professional and author). Some resources you’ll find on this page are css/edge (Eric Meyers experiments on CSS) and CSS reference.
6. 456 Berea Street – CSS category
456 Berea Street – CSS category – screen shot.
Roger Johansson’s 456 Berea Street has over 300 posts under the CSS category. Some posts talk choosing an image replacement method while others teach you CSS techniques.
7. /* Position Is Everything */
/* Position Is Everything */ – screen shot.
Those just getting their hands around authoring CSS code will quickly realize that a significant chunk of time (and frustration) stems from getting rid of browser bugs. Position Is Everything discusses known browser bugs and shares CSS methods that work across browsers. Here, you can read about the one true layout or learn what happens when you nest absolutely-positioned div’s.
8. HTML Dog CSS Tutorials
HTML Dog CSS Tutorials – screen shot.
HTML Dog is a tutorial website dedicated to teaching XHTML and CSS best practices. There’s three CSS tutorial sections: Beginner, Intermediate, and Advanced.
9. Learn CSS Positioning in Ten Steps
Learn CSS Positioning in Ten Steps – screen shot.
Positioning elements using CSS can be a tricky concept at first. If you’re having a hard time understanding the fundamentals of CSS positioning, check out this 10-step tutorial to get you positioning stuff in no time!
10. Andy Budd CSS/Web Standards Links
Andy Budd CSS/Web Standards Links – screen shot.
Andy Budd (directory of Clearleft, CSS guru, and author of one of my favorite books – CSS Mastery) has a set of CSS/web standards links to help you find reliable, useful information about CSS.
11. W3CSchools CSS Tutorial
W3CSchools CSS Tutorial – screen shot.
W3CSchools has a CSS section that covers the very basics of CSS up to more advanced topics.
12. css Zen Garden
css Zen Garden – screen shot.
css Zen Garden is a showcase of the things you can do CSS. Most importantly, it highlights the concept of separating content from presentation. Using the same HTML file, designers submit external stylesheets to style the HTML file. I suggest using the Web Developer Tool to inspect how the layouts work and what styles affect certain elements of the page.
13. CSS at MaxDesign
CSS at MaxDesign – screen shot.
At MaxDesign, you can find Russ Weakley’s brilliant set of CSS-related tutorials. Some things to expect here are: Listmatic – which shows you a variety of ways you can use CSS to style lists, and Floatutorial – which goes through the fundamentals of floating elements.
14. CSSeasy.com
CSSeasy.com – screen shot.
CSSEasy.com’s slogan is "learn CSS the modern way". The site promotes learning by experience, with the idea that if you inspect the source code and see how things fit together as a whole, you’ll gain a better understanding of CSS. The Web Developer Tool will also come in handy on this website.
15. CSS-Discuss
CSS-Discuss – screen shot.
CSS-Discuss is a community of CSS enthusiasts. The CSS-Discuss Wiki is a comprehensive collection of real-world usage of CSS.
16. Web Design from Scratch: CSS
Web Design from Scratch: CSS – screen shot.
Ben Hunt’s Web Design from Scratch has an excellent section on CSS that covers basic concepts about CSS. I highly recommend beginners start off with Introduction to CSS, a quick but very informative starting point to getting your hands dirty with CSS.
17.CSS-Tricks
CSS-Tricks – screen shot.
CSS-Tricks is a blog dedicated to the topic of CSS. You’ll find helpful posts such as what CSS Sprites are (in a nut shell), techniques for image replacements, and even screencasts on topics like conditional stylesheets.
18.CSS on Delicious
CSS on Delicious – screen shot.
The CSS tag on Delicious is a great way to find popular links that relate to CSS. It allows you to see what people are currently reading.
19. SitePoint CSS Reference
SitePoint CSS Reference – screen shot.
SitePoint has a CSS reference section that discusses introductory level CSS topics. You can get a crash course on general CSS syntax and nomenclature onto slightly more advanced topics such as CSS hacks and filters.
20. CSSDog
CSSDog – screen shot.
CSSDog has a section for both beginners and more advanced developers. Aside from CSS lessons, their CSS Reference section – which lists quick guides and color references – are very helpful.
dwr+spring integration
1, the application will be put dwr.jar / WEB-INF/lib directory
2, configure web.xml, add the following code:
Code
1. <! – Initialization WebApplicationContext ->
2. <context-param>
3. <param-name> ContextConfigLocation </ param-name>
4. <param-value> / WEB-INF/applicationContext.xml, / WEB-INF/action-servlet.xml </ param-value>
5. </ Context-param>
6. <listener>
7. <listener-class>
8. org.springframework.web.context.ContextLoaderListener
9. </ Listener-class>
10. </ Listener>
11. <! – DWR configured interceptor ->
12. <servlet>
13. <servlet-name> Dwr-invoker </ servlet-name>
14. <servlet-class> Uk.ltd.getahead.dwr.DWRServlet </ servlet-class>
15. <init-param>
16. <param-name> Debug </ param-name>
17. <param-value> True </ param-value>
18. </ Init-param>
19. </ Servlet>
20. <servlet-mapping>
21. <servlet-name> Dwr-invoker </ servlet-name>
22. <url-pattern> / Dwr / * </ url-pattern>
23. </ Servlet-mapping>
3, by documents in the dwr.xml
The content of the document:
Code
1. <? Xml version = "1.0" encoding = "UTF-8"?>
2. <! DOCTYPE dwr PUBLIC "- / / GetAhead Limited / / DTD Direct Web Remoting 1.0 / / EN" "http://www.getahead.ltd.uk/dwr/dwr10.dtd">
3. <dwr>
4. <allow>
5. <create Creator="spring" javascript="DWRUser">
6. <param Name="beanName" value="DWRUser"/>
7. </ Create>
8. </ Allow>
9. </ Dwr>
creator attribute's value may be new, struts, spring …… because to do here is to organize the spring, therefore, set to "spring", javascript = "DWRUser" said examples into javascript language named after DWRUser, Prospects pages can code (<script type = 'text / javascript' xsrc ='../../ dwr / interface / DWRUser.js'> </ script>) to call. param element of the name attribute value can be a class, beanName, here with beanName, value for value is defined in the applicationContext.xml in a bean value of the id.
4, to create an entity bean for the DWR into js
Code
1. Package com.note.dwr;
2. Import com.note.bussies.service.IUserService;
3. Public class User (
4. Private IUserService ius;
5.
6. Public IUserService getIus () (
7. Return ius;
8.)
9. Public void setIus (IUserService ius) (
10. This.ius = ius;
11.)
12. Public User () (
13.
14.)
15. Public boolean isExist (String username) (
16. Users user = this.ius.getUserByName (username);
17. Return (null == user)? False: true;
18.)
19.)
5, in applicationContext.xml in the allocation of Step 4 to write the bean
Code
1. ……
2. <bean Id="DWRUser" class="com.note.dwr.User">
3. <property Name="ius">
4. <ref Bean="UserService" />
5. </ Property>
6. </ Bean>
7. ……
6, in view of the page called
To import the following text of each document detailing the functions no longer here
Code
1. <script Type='text/javascript' src='../../dwr/interface/DWRUser.js'> </ script>
2. <script Type='text/javascript' src='../../dwr/engine.js'> </ script>
3. <script Type='text/javascript' src='../../dwr/util.js'> </ script>
Because my view is on the document / view / user / under, so here to return to the root of the ../../
Specific call:
Code
1. <script Type='text/javascript'>
2. Function regUserChked () (
3. Var username = $ ( "username"). Value;
4. DWRUser.isExist (username, showData); / / showData callback function
5.)
6. Function showData (data) (
7. If (data) (
8. DWRUtil.setValue ( "userMsg", "the user name has been registered, please change your user name!");
9.) Else (
10. DWRUtil.setValue ( "userMsg", "Congratulations to you, the user name has not yet been registered!");
11.)
12.)
13. </ Script>
14. Input type = "text" name = "username" value = "" onblur = "regUserChked ()" /> <div id="userMsg"> </ div>
jQuery the chain operation
jQuery the chain operation, what is a chain operation? » To see if we should have been written like this:
[codes = javascript]
$ ( ". stripe tr"). mouseover (function () (
$ (this). addClass ( "over ");})
$ ( ". stripe tr"). mouseout (function () (
$ (this). removeClass ( "over");))
[/ codes]
However, we wrote:
[codes = javascript]
$ ( ". stripe tr"). mouseover (function () (
$ (this). addClass ( "over ");}). mouseout (function () (
$ (this). removeClass ( "over ");})
[/ codes]
Because the mouse is moved in to remove the same object, so we can be an object in the same action on the link to write, like this if there are many objects in their possession and in a lot of action it will save a lot of Code.
DWR was wrong IllegalArgumentException
web.xml worded as follows, but when the running error,
<servlet>
<servlet-name> dwr-invoker </ servlet-name>
<servlet-class> org.directwebremoting.servlet.DwrServlet </ servlet-class>
<init-param>
<param-name> debug </ param-name>
<param-value> true </ param-value>
</ init-param>
</ servlet>
<servlet-mapping>
<servlet-name> dwr-invoker </ servlet-name>
<url-pattern> / dwr / * </ url-pattern>
</ servlet-mapping>
Mistakes are as follows:
java.lang.IllegalArgumentExcep
tion: DefaultContainer can't find a classes
at org.directwebremoting.impl.DefaultContainer.getBean (DefaultContainer.java: 216)
at org.directwebremoting.annotations.AnnotationsConfigurator.configure (AnnotationsConfigurator.java: 50)
at org.directwebremoting.servlet.DwrServlet.init (DwrServlet.java: 121)
DWR2.0 the original by adding a footnote to the JDK5 (annotations). DwrServlet initialization of the Notes will be to check the type, can not find on the Baocuo. If you do not have annotations can also overlooked this error, it is不爽. However, there are ways to solve it, as follows:
<servlet>
<servlet-name> dwr-invoker </ servlet-name>
<servlet-class> org.directwebremoting.servlet.DwrServlet </ servlet-class>
<init-param>
<param-name> debug </ param-name>
<param-value> true </ param-value>
</ init-param>
<init-param>
<param-name> class </ param-name>
<param-value> java.lang.Object </ param-value>
</ init-param>
</ servlet>
<servlet-mapping>
<servlet-name> dwr-invoker </ servlet-name>
<url-pattern> / dwr / * </ url-pattern>
</ servlet-mapping>
DWR primary study
DWR is a can allow you to create AJAX WEB site JAVA open-source library. It can let you in the browser's Javascript code on the Web server called the Java code, like Java code in a browser on the same.
HelloWorld example:
1.web.xml
<servlet>
<servlet-name> dwr-invoker </ servlet-name>
<servlet-class> org.directwebremoting.servlet.DwrServlet </ servlet-class>
<init-param>
<param-name> debug </ param-name>
<param-value> true </ param-value>
</ init-param>
<init-param>
<param-name> crossDomainSessionSecurity </ param-name>
<param-value> false </ param-value>
</ init-param>
</ servlet>
<servlet-mapping>
<servlet-name> dwr-invoker </ servlet-name>
<url-pattern> / dwr / * </ url-pattern>
</ servlet-mapping>
2.dwr.xml
<dwr>
<allow>
<create creator="new" javascript="helloWorld">
<param name="class" value= "com.HelloWorld" />
</ create>
</ allow>
</ dwr>
3. HelloWorld class preparation
package com;
public class HelloWorld (
public String sayHello (String yourName) (
return "Hello World" + yourName;
)
)
4. Preparation of a jsp
<html>
<head>
<script type="text/javascript" src='js/util.js'> </ script>
<script type="text/javascript" src='js/engine.js'> </ script>
<script type="text/javascript" src='dwr/interface/helloWorld.js'> </ script>
<script type="text/javascript">
function firstDwr () (
helloWorld.sayHello ( "ucatch", callBackHello);
)
function callBackHello (data) (
return alert (data);
)
</ script>
</ head>
<body>
<input type="button" name="button" value="测试" onclick="firstDwr()">
</ body>
</ html>
Such a simple application to complete the GWT
The first application of GWT
Some time ago to the companies we have done a simple GWT induction training, Now I am under GWT environment to introduce the structures and the first example – HelloWorld:
Environmental structures:
1. Download and install a good JDK.
2. Download and install the GWT. GWT visit http://code.google.com/webtoolkit/ download the latest version of the download compressed files extracted to C: / GWT directory.
GWT tool kits to support different operating systems, according to its own operating system choose a suitable installation package.
The first example – Hello World:
GWT kit provided in the applicationCreator command line tool can help us create a GWT application development environment needed.
Open a command line tool,
C: \> mkdir HelloWorld
C: \> set path =% JAVA_HOME% \ bin;% GWT_HOME% (will% JAVA_HOME% \ bin directory and directory% GWT_HOME% in the path into the PATH)
applicationCreator.cmd order to support the syntax is as follows:
ApplicationCreator [-eclipse projectName] [-out dir] [-overwrite] [-ignore] className
Enter HelloWorld directory, the implementation of C: \ HelloWorld> projectCreator-eclipse HelloWorld;
Continue to implement the C: \ HelloWorld> applicationCreator-eclipse HelloWorld com.mycompany.client.HelloWorld;
Next implementation of C: \ HelloWorld> HelloWorld-shell.cmd
Final performance C: \ HelloWorld> HelloWorld-compile.cmd (GWT application will be compiled into Ajax applications)
JSON Technology
XML – that for this client and server for data exchange between the payload format has become almost a synonym for Web services. We know that AJAX technology would be able to request a faster every time, every time the request is not the return of the entire pages, and only by the need to return to the data. However, due to Ajax and REST the emergence of technology applications affect the structure, which forced people began to seek `XML as a substitute for, such as: JavaScript Object Notation (JSON).
JSON as a lighter, more friendly Web services client format (use of the browser in the form or visit the REST style Web services Ajax application form) from the Web service provider's attention. AJAX usually by returning the data in XML format, and then through the client complex JavaScript script analysis and rendering of these data in XML format. JSON (Reading Jason) can make is to become a standard data format, was more simple JavaScript Analysis.
This paper will set out JSON Web services in the design of the reasons for the highly respected, and XML as an alternative to the main advantages and limitations. In-depth study will be: With the corresponding Web service clients choose to use JSON, how can we easily in Java Web services generated in the JSON output.
json official documents: http://www.json.org/json-zh.html
JSON the merits of
* Lightweight data interchange format
* People to read and write more easily
* Analysis and the machine easy to generate
* Through JavaScript in eval () function analytical JSON
* JSON support multi-language. Including: ActionScript, C, C #, ColdFusion, E, Java, JavaScript, ML, Objective CAML, Perl, PHP, Python, Rebol, Ruby, and Lua.
JSON syntax is a generation and transmission of data for the agreement, is very similar to C family of languages, can easily be C family of languages by the analytical.
Target: object contains again between ()
Attributes: Key-Value on to express. Use a comma between the separate attributes. string: value
Array: storage array to [] and [elements]
Elements: element with commas separate
Value: value can be string figures, objects, arrays, true, false, null
Examples:
JSON
( "menu": (
"id": "file",
"value": "File:",
"popup": (
"menuitem": [
( "value": "New", "onclick": "CreateNewDoc ()"},
( "value": "Open", "onclick": "OpenDoc ()"},
( "value": "Close", "onclick": "CloseDoc ()")]
)
))
XML
<menu id="file" value="File">
<popup>
<menuitem value="New" onclick="CreateNewDoc()" />
<menuitem value="Open" onclick="OpenDoc()" />
<menuitem value="Close" onclick="CloseDoc()" />
</ popup>
</ menu>
XML is the role of formatted data content. If we do not have to XML what better way? » The answer is JSON. JSON before I first introduced about this door JavaScript scripting language. Scripting language has its own dynamic implementation of the gifted. That we can to implement the statement on the string, through the eval () function to the implementation of this dynamic implementation. The contents of the string, we would like to write the script was executed the same.
<HTML>
<HEAD>
<TITLE> Eval example 1 </ TITLE>
</ HEAD>
<BODY>
<script>
Str = "alert ( 'hello')";
Eval (str);
</ Script>
</ BODY>
</ HTML>
Pages will open the pop-up window hello. We can put any strings in the script statements, including statements statement, and so on a number of things, such as:
<HTML>
<HEAD>
<TITLE> Eval example 2 </ TITLE>
</ HEAD>
<BODY>
<script>
define = "(name: 'Michael', email:'17bity @ gmail.com ')";
Eval ( "data =" + define);
Alert ( "name:" + data.name);
Alert ( "email:" + data.email);
</ script>
</ BODY>
</ HTML>
If we came in the background Asynchronous JavaScript is the text of the statement language, not an eval method will be able to resolve the » For analytical complex XML, this is the efficiency of how great the increase ah! Now to tell you what is JSON: JavaScript Object Notation. I am more willing to translate it for the JavaScript object statement. For example, from the background information contained in a number of contacts, if written in XML, as follows:
<contact>
<friend>
<name> Michael </ name>
<email> 17bity@gmail.com </ email>
<homepage> Http://www.jialing.net </ homepage>
</ Friend>
<friend>
<name> John </ name>
<email> John@gmail.com </ email>
<homepage> Http://www.john.com </ homepage>
</ Friend>
<friend>
<name> Peggy </ name>
<email> Peggy@gmail.com </ email>
<homepage> Http://www.peggy.com </ homepage>
</ Friend>
</ contact>
JSON and wrote it, as the following:
[
(
Name: "Michael",
Email: "17bity@gmail.com",
Homepage: "http://www.jialing.net"
)
(
Name: "John",
Email: "john@gmail.com",
Homepage: "http://www.jobn.com"
)
(
Name: "Peggy",
Email: "peggy@gmail.com",
Homepage: "http://www.peggy.com"
)
]
Not just a simple expression, the most important thing is to be discarded people confused the analysis of the DOM. Because as long as the JavaScript statement norms, JavaScrip will automatically help you resolve good. Ajax in the use of JSON is the basic outlook statement printed in the background object of JavaScript string, and ways to eval it to the actual object, final adoption of DHTML updated information pages.
java database linking all manner summary
1. oracle8/8i/9i database (thin model)
Class.forName ( "oracle.jdbc.driver.OracleDriver"). NewInstance ();
String url = "jdbc: oracle: thin: @ localhost: 1521: orcl"; / / orcl database for the SID
String user = "test";
String password = "test";
Connection conn = DriverManager.getConnection (url, user, password);
2. DB2 database
Class.forName ( "com.ibm.db2.jdbc.app.DB2Driver"). NewInstance ();
String url = "jdbc: db2: / / localhost: 5000/sample"; / / sample for your database name
String user = "admin";
String password = "";
Connection conn = DriverManager.getConnection (url, user, password);
3. Sql Server7.0/2000 database
Class.forName ( "com.microsoft.jdbc.sqlserver.SQLServerDriver"). NewInstance ();
String url = "jdbc: microsoft: sqlserver: / / localhost: 1433; DatabaseName = mydb";
/ / mydb for database
String user = "sa";
String password = "";
Connection conn = DriverManager.getConnection (url, user, password);
4. Sybase Database
Class.forName ( "com.sybase.jdbc.SybDriver"). NewInstance ();
String url = "jdbc: sybase: Tds: localhost: 5007/myDB"; / / myDB for your database name
Properties sysProps = System.getProperties ();
SysProps.put ( "user", "userid");
SysProps.put ( "password", "user_password");
Connection conn = DriverManager.getConnection (url, SysProps);
5. Informix Database
Class.forName ( "com.informix.jdbc.IfxDriver"). NewInstance ();
String url = "jdbc: informix-sqli: / / 123.45.67.89:1533 / myDB: INFORMIXSERVER = myserver;
user = testuser; password = testpassword "; / / myDB for the database name
Connection conn = DriverManager.getConnection (url);
6. MySQL database
Class.forName ( "org.gjt.mm.mysql.Driver"). NewInstance ();
String url = "jdbc: mysql: / / localhost / myDB? User = soft & password = soft1234 & useUnicode = true & characterEncoding = 8859_1"
/ / myDB for the database name
Connection conn = DriverManager.getConnection (url);
7. PostgreSQL database
Class.forName ( "org.postgresql.Driver"). NewInstance ();
String url = "jdbc: postgresql: / / localhost / myDB" / / myDB for the database name
String user = "myuser";
String password = "mypassword";
Connection conn = DriverManager.getConnection (url, user, password);
8. access the database directly连用ODBC
Class.forName ( "sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc: odbc: Driver = (MicroSoft Access Driver (*. mdb)); DBQ =" + application.getRealPath ( "/ Data / ReportDemo.mdb");
Connection conn = DriverManager.getConnection (url ,"","");
Statement stmtNew = conn.createStatement ();