YOMEDIA
ADSENSE
Beginning Ajax with ASP.NET- P29
81
lượt xem 7
download
lượt xem 7
download
Download
Vui lòng tải xuống để xem tài liệu đầy đủ
Beginning Ajax with ASP.NET- P29:Thank you for purchasing Beginning Ajax with ASP.NET. We know that you have a lot of options when selecting a programming book and are glad that you have chosen ours. We’re sure you will be pleased with the relevant content and high quality you have come to expect from the Wrox Press line of books.
AMBIENT/
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!
Nội dung Text: Beginning Ajax with ASP.NET- P29
- port port 80, 103 propertyIsEnumerable(nameOf port numbers in code samples, 78 Property) function (JavaScript), 45 position() function (XSLT), 367 prototype chaining, 50–51 postback delay, 77 prototype property (JavaScript objects), preparing applications to use Ajax.NET Pro 44, 49–50 library, 160–161, 174–175, 180–182 prototypes (JavaScript), 46–49 preserve-space element (XSLT), 365 proxy classes processing defined, 166 Ajax, 6 generating, 175–177, 191–192 ASP .NET, 5 XSLT, 112–114, 116–120 processing-instruction element (XSLT), Q 365 quotation marks in JavaScript, 16 profiles, 311, 314, 322–328 programmatic data binding, 299–302 projects, adding to solutions, 180–181 R prompt() function (JavaScript), 17 rangeValidator control, 303, 305 properties readyState property (XMLHttpRequest constructor (JavaScript objects), 44 object), 93 context (response object), 164–165, references to Ajax.NET Pro library, 160–161 171–172 reflection, 176–177 error (response object), 164–165, 173–174 RegExp class, 268 extend (response object), 164–165 regexValidator control, 303, 305–306 innerHTML, 23–26 RegisterCommonAjax() method, 184–186 nodes, 64–69 registering onreadystatechange (XMLHttpRequest classes, 273–274 object), 93 namespaces, 273 prototype (JavaScript objects), 44, 49–50 page class, 163, 183–186 readyState (XMLHttpRequest object), 93 RegisterTypeForAjax() method, 183–184 request (response object), 164–165, 173 remove((item1, item2, ...), responseText (XMLHttpRequest object), position) function (XSLT), 370 84–87, 93 removing nodes, 63 responseXML (XMLHttpRequest object), RenderControl() method, 167 84, 87, 93 replace(string, pattern, status (XMLHttpRequest object), 91–93 replacement) function (XSLT), 372 statusText (XMLHttpRequest object), 93 replacing nodes, 63 SupportsCallback (Browser object), request object events 132–133 onError, 172 SupportsXmlHttp (Browser object), onLoading, 172–173 132–133 onStateChanged, 172 value (response object), 164–165, 167–169 onTimeout, 172 396
- server-side frameworks Index request property (response object), seconds-from-duration(datetime 164–165, 173 duration) function (XSLT), 368 requiredFieldValidator control, seconds-from-time(time) function 303–305 (XSLT), 368 resolve-uri(relative, base) function security (XSLT), 372 HTML injection attacks, 18 response object XMLHttpRequest object, 84 defined, 164 select element, 21–22 properties selectNodes() function (XML DOM), 87–88, context, 164–165, 171–172 91–92 error, 164–165, 173–174 selectSingleNode() function (XML DOM), extend, 164–165 87–88 request, 164–165, 173 send(content) method (XMLHttpRequest value, 164–165, 167–169 object), 92 responseText property (XMLHttpRequest Serializable() attribute, 169–170, 194 object), 84–87, 93 server controls, 288–292 responseXML property (XMLHttpRequest server-side ASP.NET debugging, 329–332 object), 84, 87, 93 server-side frameworks return keyword (JavaScript), 19 Anthem.NET return values of JavaScript functions, 34 client functions, 237–239 reverse((item1, item2, ...)) function complex controls, 234–235 (XSLT), 370 custom attributes, 235–237 roles, 311, 314, 319–321 Hello World example, 232–233 root() function (XSLT), 369 invoke page method, 239–242 root(node) function (XSLT), 369 micro-content, 242–244 round trips server exceptions, 244–246 ASP .NET, 4 setup, 231–232 defined, 2 architectural distinctions, 203–207 round-half-to-even(num) function ComfortASP .NET (XSLT), 370 complex controls, 211–212 round(num) function (XSLT), 370 downloading, 208 Hello World example, 210–211 Manager control, 213–216 S PanelUpdater control, 216–219 Sarissa client-side framework, 196–199 setup, 208–209 SAX (Simple API for XML), 112 MagicAjax script element, 13–14, 32–33 call helper, 224–226 ScriptManager control, 252–253 delay message, 222–224 seconds-from-dateTime(datetime) function (XSLT), 368 397
- server-side frameworks (continued) server-side frameworks (continued) status codes, 91 Hello World example, 221–222 status property (XMLHttpRequest object), micro-content, 226–231 91–93 setup, 219–220 statusText property (XMLHttpRequest server-side support for Atlas, 250 object), 93 setRequestHeader(“label”, “value”) String class, 268 method (XMLHttpRequest object), 92 string processing with XSLT, 116–117 setting breakpoints, 331–332, 336–337 string(argument) function (XSLT), 371 setup string-join((string1, string2, Anthem.NET server-side framework, 231–232 ...), separator) function (XSLT), 371 ComfortASP .NET server-side framework, string-length() function (XSLT), 371 208–209 string-length(string) function (XSLT), MagicAjax server-side framework, 219–220 371 ShowHide() function (JavaScript), 25–26 strings, 167–168 signature, 171 string-to-codepoints(string) Simple API for XML (SAX), 112 function (XSLT), 371 Simple Object Access Protocol (SOAP), strip-space element (XSLT), 365 101–102 style sheets. See CSS (Cascading Style single quotation marks in JavaScript, 16 Sheets) size attribute, 21 stylesheet element (XSLT), 365 solutions, adding to projects, 180–181 stylesheet tree (XSLT), 114 sort element (XSLT), 115 subsequence((item1, item2, ...), source code for Ajax.NET Pro library, 160, 180 start, length) function (XSLT), 371 spaghetti code, 3 substring-after(string1, string2) span element, 23–24 function (XSLT), 372 src attribute, 20–21, 32 substring-before(string1, string2) standardization function (XSLT), 372 JavaScript, 30 substring(string, start) function object models, 31, 53 (XSLT), 371 starts-with(string1, string2) substring(string, start, length) function (XSLT), 372 function (XSLT), 371 statements (JavaScript) Suggest (Google), 7, 9 Alert statements, 333 SupportsCallback property (Browser break, 42–43 object), 132–133 continue, 43 SupportsXmlHttp property (Browser flow control statements, 40–41 object), 132–133 if-else, 40 switch statement (JavaScript), 41 switch, 41 synchronous execution, 170 syntax, 12 synchronous operations writing, 13–14 Atlas project, 251–252 static-base-uri() function (XSLT), 367 XMLHttpRequest object, 81–82 398
- value property (response object) Index syntax of JavaScript, 12, 33–34 Sys.BindingDirection enumeration, 302 U Sys.Bindings() class, 302 UI (user interface), 7 Sys.Data namespace, 269 unordered((item1, item2, ...)) Sys.Data.DataColumn class, 269–271 function (XSLT), 371 Sys.Data.DataRow class, 272 unparsed-entry-uri function (XSLT), 366 Sys.Data.DataTable class, 270–272 UpdatePanel control, 288–292 Sys.Net namespace, 268 UpdateText() function (JavaScript), 25–26 Sys.Net.WebRequest class, 268–269 upper-case(string) function (XSLT), 372 System.Data namespace, 258 user context system-property function (XSLT), 366 Ajax, 7 Sys.UI.Data namespace, 287 ASP .NET, 5 user experience Ajax, 5 T Flash, 5 template element (XSLT), 114–115 invisible postback, 88–91 terminal-style development, 1–2 Java, 5 text element (XSLT), 365 postback delay, 77 this keyword (JavaScript), 19 XML-based languages, 5 timer control, 292–294 user input in JavaScript, 17–18 timezone-from-date(date) function user interface (UI), 7 (XSLT), 368 using Ajax.NET Pro library in applications, timezone-from-time(time) function 161–164 (XSLT), 368 UTC encoding for dates and time, 264 tokenize(string, patternstring) function (XSLT), 372 toLocaleString() function (JavaScript), 44 V toString() function (JavaScript), 44 valid HTTP status codes, 91 ToString transform, 302 valid XML documents, 106–108 trace(value, label) function (XSLT), 369 validating transform element (XSLT), 365 data input, 303–310 transformations in data binding, 302 XML, 110–111 translate(string1, string2, validationErrorLabel control, 303 string3) function (XSLT), 372 validationGroup control, 308–310 TreeView control (ASP.NET), 128–129 validators true() function (XSLT), 367 built-in, 303–307 type attribute, 32 custom, 306–307 Type.registerNameSpace() method, 273 group, 308–310 typeValidator control, 303, 305 value property (response object), 164–165, 167–169 399
- value-of element (XSLT) value-of element (XSLT), 115 Web.Enum class, 280 valueOf() function (JavaScript), 44 WebResource.axd HTTP handler, 250 var keyword (JavaScript), 35, 37 well-formed XML documents, 106–108 variable element (XSLT), 365 when element (XSLT), 365 variables in JavaScript, 35 while loop (JavaScript), 41–42 VBScript (Microsoft), 30 Windows authentication, 312–313 Venkman (Firefox debugging tool), 350–351 with-param element (XSLT), 365 Virtual Earth (MSN), 78 wrapper library, 159 Visual Studio .NET writing statements (JavaScript), 13–14 ASP .NET debugging, 330–332 JavaScript debugging, 334–347 X X Path 2.0 Programmer’s Reference (Wiley), W 103 Watch window, 344–346 X Path Language, 87, 112, 121–122 weak typing in JavaScript, 37 XAML (Extensible Application Markup web browsers Language), 5 Ajax support, 8 XHTML ASP .NET, 132 case-sensitivity, 35 callback support, 132–133 defined, 32 checking type, 79–80 XML debugging tools, 347–351 Ajax, 8, 122–123 Document Object Model (DOM), 30–31 ASP .NET, 154 JavaScript support, 30–31, 33 attributes, 105 object model standardization, 53 defined, 103 XMLHttpRequest object support, 78–80 development history, 104–105 Web Parts, 314 Document Type Definition (DTD), 108–109 web services elements, 105 Atlas entity references, 108 caching, 263–265 features, 104 communicating with, 253–257 numeric character references, 108 exposing from a web form, 265–266 parsing HTTP 103 , Document Object Model (DOM), 111 JSON (JavaScript Object Notation), 103 Simple API for XML (SAX), 112 SOAP (Simple Object Access Protocol), validating, 110–111 101–102 web services, 103 XML, 103 XML declaration, 105 XMLHttpRequest object, 97–102 XML Document Object Model, 87 Web.Config settings for Ajax.NET Pro library, XML documents, 105–108 182, 186–188 400
- XSLT elements Index XML DOM functions XSLT selectNodes(), 87–88, 91–92 defined, 103, 112 selectSingleNode(), 87–88 extensions, 120 XML Path Language (X Path), 87, 112, processing, 112–114, 116–120 121–122 stylesheet tree, 114 XML Schema, 106, 109–110 X Path Language, 112, 121–122 XML Schema Definitions (XSDs), 109–110 XSLT 2.0 Programmer’s Reference, Third Edition XML User Interface Language (XUL), 5 (Wiley), 103 XML-based languages and user experience, 5 XSLT elements XMLHTTP protocol, 78, 80–81 apply-imports, 363 XMLHttpRequest object apply-templates, 363 asynchronous requests, 82–84, 88–92 attribute, 363 browser support, 78–80 attribute-set, 363 development history, 78 call-template, 363 functionality, 8, 77–78 choose, 115–116 HTTP handlers, 94–97 comment, 363 methods copy, 364 abort(), 92 copy-of, 364 getAllResponseHeaders(), 92 decimal-format, 364 getResponseHeader(“headername”), 92 element, 364 open(“method”, “URL”, “async”, fallback, 364 “uname”, “pswd”), 92 for-each, 115 send(content), 92 if, 115 setRequestHeader(“label”, import, 364 “value”), 92 include, 364 passing parameters, 93–94 key, 364 properties message, 364 onreadystatechange, 93 namespace-alias, 364 readyState, 93 number, 364 responseText, 84–87, 93 otherwise, 364 responseXML, 84, 87, 93 output, 364 status, 91–93 param, 364 statusText, 93 preserve-space, 365 Sarissa client-side framework, 196 processing-instruction, 365 security, 84 sort, 115 synchronous requests, 81–82 strip-space, 365 web services, 97–102 stylesheet, 365 XMLHTTP protocol, 78, 80–81 template, 114–115 XSDs (XML Schema Definitions), 109–110 text, 365 transform, 365 401
- XSLT elements (continued) XSLT elements (continued) error(), 369 value-of, 115 error(error), 369 variable, 365 error(error, description), 369 when, 365 error(error, description, error- with-param, 365 object), 369 XSLT functions escape-uri(stringurl, escres), 372 abs(num), 370 exists(item1, item2, ...), 370 adjust-dateTime-to-timezone(date false(), 367 time, timezone), 369 floor(num), 370 adjust-date-to-timezone(datetime, format-number, 366 timezone), 369 function-available, 366 adjust-time-to-timezone(datetime, generate-id, 366 timezone), 369 hours-from-dateTime(datetime), 368 base-uri(), 366 hours-from-duration(datetime boolean(blarg), 367 duration), 368 ceiling(num), 370 hours-from-time(time), 368 codepoint-equal(item1, item2), 371 implicit-timezone(), 367 codepoints-to-string(int1, index-of((item1, item2, ...), int2, ...), 371 searchitem), 370 compare(item1, item2), 371 insert-before((item1, item2, ...), compare(item1, item2, collation), position, inserts), 370 371 key, 366 concat(string1, string2, ...), 371 lang(lang), 369 contains(string1, string2), 372 last(), 367 current, 366 local-name(), 369 current-date(), 367 local-name(nodeset), 369 current-dateTime(), 367 lower-case(string), 372 current-time(), 367 matches(string, pattern), 372 data(item, ...), 366 minutes-from-dateTime(datetime), dateTime(date,time), 367 368 day-from-date(date), 368 minutes-from-duration(datetime day-from-dateTime(datetime), 368 duration), 368 default-collation(), 367 minutes-from-time(time), 368 distinct-values((item1, item2, month-from-date(date), 368 ...), collation), 370 month-from-dateTime(datetime), 368 document, 366 months-from-duration(datetime document-uri(node), 366 duration), 368 element-available, 366 name(), 369 empty(item1, item2, ...), 370 name(nodeset), 369 end-with(string1, string2), 372 namespace-uri(), 369 402
- years-from-duration(datetimeduration) function (XSLT) Index namespace-uri(nodeset), 369 substring-after(string1, string2), nilled(node), 366 372 node-name(node), 366 substring-before(string1, node-set, 366 string2), 372 normalize-space(), 371 substring(string, start), 371 normalize-space(string), 371 substring(string, start, length), normalize-unicode(), 372 371 not(blarg), 367 system-property, 366 number(arg), 370 timezone-from-date(date), 368 position(), 367 timezone-from-time(time), 368 remove((item1, item2, ...), tokenize(string, patternstring), position), 370 372 replace(string, pattern, trace(value, label), 369 replacement), 372 translate(string1, string2, resolve-uri(relative, base), 372 string3), 372 reverse((item1, item2, ...)), 370 true(), 367 root(), 369 unordered((item1, item2, ...)), 371 root(node), 369 unparsed-entry-uri, 366 round-half-to-even(num), 370 upper-case(string), 372 round(num), 370 year-from-date(date), 368 seconds-from-dateTime(datetime), year-from-dateTime(datetime), 368 368 years-from-duration(datetime seconds-from-duration(datetime duration), 367 duration), 368 XSS (Cross Site Scripting), 18 seconds-from-time(time), 368 XUL (XML User Interface Language), 5 starts-with(string1, string2), 372 static-base-uri(), 367 string(argument), 371 Y string-join((string1, string2, year-from-date(date) function (XSLT), ...), separator), 371 368 string-length(), 371 year-from-dateTime(datetime) string-length(string), 371 function (XSLT), 368 string-to-codepoints(string), 371 years-from-duration(datetime subsequence((item1, item2, ...), duration) function (XSLT), 367 start, length), 371 403
ADSENSE
CÓ THỂ BẠN MUỐN DOWNLOAD
Thêm tài liệu vào bộ sưu tập có sẵn:
Báo xấu
LAVA
AANETWORK
TRỢ GIÚP
HỖ TRỢ KHÁCH HÀNG
Chịu trách nhiệm nội dung:
Nguyễn Công Hà - Giám đốc Công ty TNHH TÀI LIỆU TRỰC TUYẾN VI NA
LIÊN HỆ
Địa chỉ: P402, 54A Nơ Trang Long, Phường 14, Q.Bình Thạnh, TP.HCM
Hotline: 093 303 0098
Email: support@tailieu.vn