AJAX - The Complete Reference
Chapter 2: Pre-Ajax JavaScript Communications Techniques 21 PART I might not properly support these lengths.” Yet markup specifi ...
22 Part I: Core Ideas One-way Iframes with Query Strings There are many other ways to send information to the server besides mak ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 23 PART I Prior to calling sendRequest, the transport value in the payl ...
24 Part I: Core Ideas collecting large amounts of user submitted data, such as comments. Fortunately, posted form data does not ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 25 PART I html.appendChild(body); } /* make form */ var ifrForm = ifrDo ...
26 Part I: Core Ideas /* fix the omissions */ encodedVal = encodedVal.replace(/~/g,"%7E"); encodedVal = encodedVal.replace(/!/g, ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 27 PART I else var iframe = document.createElement("iframe"); iframe.st ...
28 Part I: Core Ideas break; } } /* URL of server-side program to record rating */ var url = "http://ajaxref.com/ch2/setrating.p ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 29 PART I It is also possible to use standard frames as a communication ...
30 Part I: Core Ideas users regardless of submission method, so considering what might go wrong is a necessity. For example, in ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 31 PART I A complete simple cookie-based transmission example can be fo ...
32 Part I: Core Ideas chapter, some examples will be shown that illustrate that even in the modern Ajax world, there are plenty ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 33 PART I Of course, more likely a closure will be used to wrap the fun ...
34 Part I: Core Ideas encodedVal = encodedVal.replace(/@/g,"%40"); encodedVal = encodedVal.replace(/\//g,"%2F"); encodedVal = en ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 35 PART I function handleResponse(target,newImage,timer) { //clear netw ...
36 Part I: Core Ideas Encoding Data in Image Dimensions The previous example showed the most obvious use of two-way images, maki ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 37 PART I if (responseImage.height == "2") target.innerHTML = "Server a ...
38 Part I: Core Ideas // dump the response image and end the script fpassthru($fp); exit; } When the image arrives, the result i ...
Chapter 2: Pre-Ajax JavaScript Communications Techniques 39 PART I While the image cookie technique would seem to solve the need ...
40 Part I: Core Ideas When the browser receives the generated JavaScript, it then calls the requestComplete() function. function ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf