How can static Web pages achieve dynamic interaction? -JavaScript: static javascript Method

Source: Internet
Author: User
Tags website server what is asp

How can static Web pages achieve dynamic interaction? -JavaScript: static javascript Method

InHtmlBased on,JavascriptInteractive DevelopmentWebWebpage.JavascriptThe emergence of web pages and users enables a real-time, dynamic, and interactive relationship,JavascriptIt runs on the client, greatly improving the browsing speed and interaction capability of the web page. At the same time, it is specially designed for production.WebA simple programming language tailored for Web pages.

 

  1. Javascript: a scripting language, or descriptive language.
  1. Mainly used in Form Verification: most of them interact with users through pop-up dialog boxes.
  2. A line-by-line explanation is an explanatory language,
  1. Explanatory language: Running and compiling
  2. Compile language: enhances the efficiency of the current execution with the help of the previous Execution Process
  1. Object-based language: javascript is an object-based language and can also be seen as an object-oriented language. This means that it can use the created objects. Therefore, many functions can come from the interaction between methods of objects and scripts in the script environment.
  1. The variable type is weak and does not use strict data types.
  2. Javascript is a security language. It does not allow access to the local hard disk, and cannot store data on servers. It does not allow modification or deletion of network documents, information Browsing or dynamic interaction can only be achieved through a browser, effectively preventing data loss.
  1. Javascript depends on the browser itself and has nothing to do with the operating environment. It can be correctly executed by browsers that can run the computer of the browser and support javascript.
  1. Two mechanisms of javascript: Object-oriented and event processing.

    For exampleJavascriptSmall Example

     

    <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

    I believe that future study will beJavascriptHave a deeper understanding


What is the difference between a static website and a dynamic website?

The general characteristics of dynamic web pages are summarized as follows:

(1) dynamic web pages are based on database technology, which can greatly reduce the workload of website maintenance;

(2) websites using dynamic web technologies can implement more functions, such as user registration, user logon, online surveys, user management, and order management;

(3) A dynamic webpage is not a webpage file that exists independently on the server. The server returns a complete webpage only when the user requests it;

(4) "?" in a dynamic webpage There are some problems with search engine search. Generally, it is impossible for search engines to access all webpages from a website database, or for technical reasons, search Spider does not crawl the "?" in the website Therefore, when using dynamic web pages for search engine promotion, some technical processing is required to meet the search engine requirements.

What is a static webpage? What are the characteristics of static Web pages?

In website design, web pages in pure HTML format are often referred to as "static Web pages". Early websites were generally made from static Web pages.

It is also suffixed with .htm=.html#.shtml and. xml. Dynamic effects can also be displayed on HTML-formatted web pages, such. animated GIF, FLASH, and scroll letters. These "dynamic effects" are only visually different from the dynamic web pages described below.

The characteristics of static Web pages are summarized as follows:

(1) every webpage has a fixed URL, and the URL of the webpage is suffixed in common forms such as .htm?.html=.shtml, but does not include "?";

(2) once the webpage content is published to the website server, the content of each static webpage is stored on the website server, no matter whether there are users or not. That is to say, static web pages are files actually stored on servers. Each web page is an independent file;

(3) The content of static Web pages is relatively stable and therefore easy to be searched by search engines;

(4) static Web pages do not support databases and have a large workload in website production and maintenance. Therefore, it is difficult to rely solely on static Web page production when the website information volume is large;

(5) interactive interaction between static Web pages, which has great functional limitations

When it comes to the production of dynamic homepages, we can't help but talk about ASP dynamic web page technology. Careful readers will find that many website files end with *. asp, so what is ASP, what is its relationship with HTML, and how does it work? Let's take a look.

I. Details ASP

ASP is short for Active Server Pages. It is a Server-side scripting environment developed by Microsoft. It is embedded in IIS or PWS and provides an environment for Server-side script execution, to achieve dynamic interaction, this is also a common feature of many dynamic web pages. This chapter focuses on IIS. The content of PWS is roughly the same.

The rise of ASP seems to be "overnight". What is "magic" in it?

1. It can be executed without compilation or links. It can be integrated into HTML code and can save a lot of tedious and repetitive work.

2. browser-independent: any browser (such as IE and Netscape) that can execute HTML code on the client can view the content of the homepage designed by ASP. All the code is executed on the server. As long as the code is written, the work server can do everything.

3. activeX Server Components (ActiveX Server Component) can be used to expand functions. ActiveX Server Component can be implemented in Visual Basic, Java, Visual C ++, COBOL, and other languages, with it, you can expand the function at will. What's even more exciting is that there are many third-party components on the Internet that can be downloaded at will. You can Search and Download whatever you want, and put them in your ASP code for calling.

4. ASP is compatible with any ActiveX Scripting Language. In addition to using VBScript or JavaScript, you can also use Plug-in to use the remaining full text from...>

What Web pages made with dreamweaver are static? Are JSP and JavaScript web pages dynamic?

Static and dynamic web pages are differentiated based on the language of the web page:
Static web pages use the language: HTML (Hypertext Markup Language) has fixed content and will not change according to the different needs of the browser.
Dynamic Webpage language: HTML + ASP, HTML + PHP, HTML + JSP, etc. Dynamic Web Pages correspond to static Web pages. Also, the URL extension is not .htm?.html=.shtml ,. xml and other common forms of static Web pages, instead. asp ,. jsp ,. php ,. perl ,. cgi and other forms are suffixed, and there is a symbolic symbol in the dynamic Web site-"? ".
The general features of dynamic web pages are summarized as follows:
(1) dynamic web pages are based on database technology, which can greatly reduce the workload of website maintenance;
(2) websites using dynamic web technologies can implement more functions, such as user registration, user logon, online surveys, user management, and order management;
(3) A dynamic webpage is not a webpage file that exists independently on the server. The server returns a complete webpage only when the user requests it;
(4) "?" in a dynamic webpage There are some problems with search engine search. Generally, it is impossible for search engines to access all webpages from a website database, or for technical reasons, search Spider does not crawl the "?" in the website Therefore, when using dynamic web pages for search engine promotion, some technical processing is required to meet the search engine requirements.

Dreamweaver is a web page creation tool that can be used for static webpages or dynamic webpages.

Javascript is a client script language that runs on the client to increase interaction with users and reduce the burden on the server. It runs in a browser and is not a dynamic web page language. All dynamic web pages must be interpreted as html by the server and sent to the client for execution.

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.