DHTML Utopia Modern Web Design Using JavaScript & DOM- P13

DHTML Utopia Modern Web Design Using JavaScript & DOM- P13:In a single decade, the Web has evolved from a simple method of delivering technical documents to an essential part of daily life, making and breaking relationships and fortunes along the way. “Looking something up on the Internet,” by which is almost always meant the Web, is now within reach of almost anyone living in a first-world country, and the idea of conducting conversations and business (and probably orchestras) in your Web browser is no longer foreign, but part of life | Chapter 8 Remote Scripting 204 Piggybacks Even simpler than the image swap technique is to use the HTTP 204 No Content response. Using this technique instead of changing the src of an image to a new document we simply navigate to a special link. That link runs a server script that returns a 204 response code and no content at all along with useful cookie data. Browsers know to leave the current page in place when a 204 response is received. This approach is otherwise very similar to the image swap technique. Example Name Resolution Many email clients have an address book with a nickname feature enter the nickname into the To or Cc boxes and the email client replaces it with the email address attached to that nickname. Webmail systems don t often provide this functionality but it s a clear example of the sort of problem that the RSLite library is designed to answer. To create this functionality we pass a small amount of data a nickname to the server via the RSLite library the server then does all the work resolving the nickname to an email address. RSLite then passes the results of that work the email address back to the client for display. Here s a sample Web mail page. It looks just like an ordinary Web application File DOCTYPE HTML PUBLIC - W3C DTD HTML EN http TR html4 html head title Name Resolution title link type text css rel stylesheet href script src type text javascript script script src type text javascript script head body h1 Name resolution h1 form p label for to To label input type text name to id to p 220 Licensed to siowchen@ Example Name Resolution P label for cc Cc label input type text name cc id cc p P label for Subject Subject label input type text name subject id subject p p textarea id message name message textarea p p input type submit value Send p form body html The styles in are decorative only they have no impact on the

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
8    67    2    22-05-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.