Test form detection using Dreamweaver CS3 integrated with Spry

Source: Internet
Author: User
Dreamweaver CS3 integrates the AJAX framework Spry, which makes me interested in Spry recently.

Again, Spry is the AJAX Framework launched by Adobe. For the so-called AJAX framework, let's first talk about the popular web2.0.1. These Web2.0 sites refer to the page form, the interaction between pages and viewers is fashionable and user-friendly. For example, if the entered email address is irregular during registration, a prompt is displayed on the page ...... Of course, this has already been used before Web2.0, but it has never been so popular with such instant detection and other technologies that suit the user experience. These technologies cannot be separated from the writing of Javascript scripts, it is already defined by AJAX.

2. Of course, AJAX is more than just that. For example, if we want to create a "TabPane tab" that is very cool to display pages, it is quite troublesome to write Javascript scripts, of course, there are also many special effects such as "display and hide" and "fade in and out" on Web sites, which cannot be separated from Javascript. Now we are also called AJAX technology.

3. The core technology of AJAX is data processing capabilities and remote asynchronous processing capabilities, mainly focusing on data interaction with XML data.

All of these, Javascript accounts for the largest proportion. XHTML and CSS exist as manifestations, and XML-related XSLT and XPATH technologies are integrated into them, as well as related DOM operations, these combinations of functional files constitute the AJAX framework (if you can, you can also write an AJAX framework for your use ).

The Adobe Spry introduction page provides the following sentence:

With Spry, you can use HTML code, CSS code, and a minimal amount of JavaScript to inmarshate XML data into your HTML documents, create widgets such as accordions and menu bars, and add different kinds of effects to various page elements.

With the Spry framework, you can use HTML, CSS, and JavaScript to display XML data in HTML articles and create interfaces such as cool menus, there are other page effects (mainly divided into three types, which are also available in the Spry AJAX framework ).

Therefore, learning Spry starts from the following three points:

Working with Spry widgets

Working with Spry Effects

Working with Spry XML Data Sets

The day before yesterday's test of the integration of Dreamweaver CS3 into Spry is an example of Spry widgets. The form detection introduced today is also included in this example.

Insert the "Spry"-"Spry validation text field" text box on the page. After selecting the form element, in addition to displaying its Element attributes, the blue text "Spry TextField" above the form element is selected, and the option content related to form verification is displayed on the property panel.

As shown in the following figure, "Type" is selected as "Email Address", and the triggered action is "Submit" by default. Of course, you can also select "Blur" or "Change ", for these operations, users are required to have simple Javascript knowledge. You can also set the default text prompt, whether it is required or not.



Test address: http://www.dw8.cn/demo/spry/spry_form.html

These operations, for users with Dreamweaver experience, were performed in DW script behavior, but those displayed are warning boxes, the text information is immediately displayed after the form element. Which of the following is more friendly to the user?
<

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.