Saturday, November 19, 2011

AJAX in Oracle JDeveloper






Contents
Preface ....................................................................................................... V
Motivation for this Book ....................................................................... V
Who Should Read this Book?...............................................................VI
Outline to the Book Structure ............................................................. VII
Prerequisite Skills .............................................................................. VIII
Acknowledgements ........................................................................... VIII
About the Author ..................................................................................IX
Contents ................................................................................................... XI
1 What is Ajax?..........................................................................................1
1.1 Introduction ......................................................................................1
1.2 What is XMLHttpRequest? ..............................................................2
1.3 XMLHttpRequest Object Properties.................................................2
1.3.1 The readyState Property ............................................................3
1.3.2 The onreadystate change Property..............................................3




1.3.3 The responseText Property........................................................3
1.3.4 The responseXML Property ......................................................4
1.3.5 The status Property ....................................................................4
1.3.6 The statusText Property.............................................................4
1.4 XMLHttpRequest Object Methods...................................................5
1.4.1 The abort() Method....................................................................5
1.4.2 The open() Method ....................................................................5
1.4.3 The send() Method.....................................................................5
1.4.4 The setRequestHeader() Method ...............................................6
1.4.5 The getResponseHeader() Method ............................................6
1.4.6 The getAllResponseHeaders() Method......................................6
1.5 Sending an Ajax Request..................................................................7
1.6 Processing an Ajax Request..............................................................8
1.7 JDeveloper Integrated JavaScript Editor ........................................ 10
1.8 Summary......................................................................................... 17
2 Developing an Ajax Web Application................................................. 19
2.1 Introduction .................................................................................... 19
2.2 Setting the Environment ................................................................. 19
2.3 Sending an Ajax Request................................................................ 29
2.4 Processing an Ajax Request on the Server Side ............................. 31
2.5 Processing an Ajax Response........................................................ 35
2.6 Summary ....................................................................................... 44
3 Less JavaScript with Prototype ........................................................... 45
3.1 Introduction .................................................................................... 45
3.2 Overview of Prototype.................................................................... 45
3.2.1 $() function .............................................................................. 45
3.2.2 $F() function........................................................................... 46
3.2.3 $A() function .......................................................................... 46
3.2.4 $H() function ........................................................................... 46
3.2.5 $R() function .......................................................................... 46
3.2.6 $w() Function .......................................................................... 47
3.2.7 Try.these function() ................................................................ 47
3.2.8 Ajax.Request Class................................................................. 47
3.2.9 Ajax.Updater Class.................................................................. 49
3.2.10 Ajax.PeriodicalUpdater Class .............................................. 50
3.3 Installing Prototype ....................................................................... 50
3.4 Configuring Prototype in AJAX Web Application........................ 51
3.5 Updating a DOM Element with Ajax.Updater ............................... 58
3.6 Summary......................................................................................... 60
4 Ajax with Java-GWT ........................................................................... 61
4.1 Introduction .................................................................................... 61
4.2 Installing GWT ............................................................................... 61
4.3 Creating a GWT Application.......................................................... 62
4.4 GWT Class Libraries ...................................................................... 75
4.5 Creating a Form Validation Ajax Application................................ 77
4.6 Summary......................................................................................... 87
5 Ajax with Java-DWR ........................................................................... 89
5.1 Introduction .................................................................................... 89
5.2 Setting the Environment ................................................................. 89
5.3 Creating a DWR Application.......................................................... 90
5.4 Deploying and Running the DWR Application............................ 103
5.5 Summary....................................................................................... 106
6 Ajax without JavaScript – AjaxTags ................................................ 107
6.1 Introduction .................................................................................. 107
6.2 Setting the Environment ............................................................... 107
6.3 Overview of AjaxTags.................................................................. 111
6.4 Installing AjaxTags....................................................................... 113
6.5 Validating a Form with AjaxTags ................................................ 114
6.6 Summary....................................................................................... 128
7 Ajax with JSF-Ajax4jsf ...................................................................... 129
7.1 Introduction .................................................................................. 129
7.2 Overview of Ajax4jsf ................................................................... 129
7.2.1Ajax Filter............................................................................... 130
7.2.2 Ajax Action Components ...................................................... 130
7.2.3 Ajax Containers ..................................................................... 130
7.2.4 JavaScript Engine .................................................................. 130
7.2.5 Ajax4jsf Component Library................................................. 130
7.3 Setting the Environment ............................................................... 132
7.4 Creating an Ajax4jsf Application ................................................. 133
7.5 Sending an Ajax Request.............................................................. 145
7.6 Processing an Ajax Request.......................................................... 148
7.7 Processing the Ajax Response..................................................... 154
7.8 Summary....................................................................................... 158
8 Ajax with PHP-Xajax ......................................................................... 159
8.1 Introduction .................................................................................. 159
8.2 Setting the Environment ............................................................... 160
8.3 Integrating PHP with JDeveloper ................................................. 161
8.4 Creating a Database Table ............................................................ 164
8.5 Sending an Ajax Request............................................................. 167
8.6 Processing an Ajax Request.......................................................... 169
8.7 Processing the Ajax Response..................................................... 172
8.8 Summary....................................................................................... 179
9 RSS Feed with Ajax ............................................................................ 181
9.1 Introduction .................................................................................. 181
9.2 Overview of Google Ajax Feed API ............................................ 182
9.3 Setting the Environment ............................................................... 184
9.4 Receiving a RSS Feed .................................................................. 186
9.5 Receiving Multiple Feeds ............................................................. 191
9.6 Summary....................................................................................... 194
10 Web Search with Ajax...................................................................... 195
10.1 Introduction ................................................................................ 195
10.2 Setting the Environment for Google Search............................... 195
10.3 Overview of Google Ajax Search API ....................................... 197
10.4 Creating a Google Ajax Web Search Application ...................... 199
10.5 Web Search with Yahoo Web Services ..................................... 203
10.6 Creating an Ajax Web Search Application for Yahoo ............... 205
10.7 Sending an Ajax Request with Yahoo Search Web Services .... 210
10.8 Running the Yahoo Ajax Web Search Application ................... 217
10.9 Summary..................................................................................... 219
Index ....................................................................................................... 223


Another Web Services Books
Another Web Programming Books
Download

No comments:

Post a Comment

Related Posts with Thumbnails

Put Your Ads Here!