SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 29 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

7 JDeveloper Integrated JavaScript Editor 13
In the JavaScript file right-click and select Source>Completion
Insight or Source>Smart Completion Insight for code insight as shown
in Fig. 1.4.
Fig. 1.4 Using Code Insight
Another feature of the JavaScript editor is Go To Declaration using
which a JavaScript variable or function may be navigated to from a usage
of the JavaScript variable/function. For example, select a usage of the
variable xmlHttpRequest, right-click and select Go To Declaration to
go to the declaration of the xmlHttpRequest variable as shown in Fig.
1.5.
14 1 What is Ajax?
Fig. 1.5 Go To Declaration
JavaScript editor also provide brace matching and code folding.
Another feature is error underling and error auditing. For example, add an
error by removing the ???{??? for a function declaration. An error analysis gets
run and the errors get underlined as shown in Fig. 1.6.
Fig. 1.6 Error Analysis
1.7 JDeveloper Integrated JavaScript Editor 15
Usages of a variable or function may be retrieved by selecting the
variable/function and selecting Find Usages. For example, select
xmlHttpRequest, right-click and select Find Usages. The usages of
the xmlHttpRequest variable get listed in the log window as shown in
Fig. 1.7.
Fig. 1.7 Find Usages
A JavaScript file is integrated with the Structure pane from which
different variables and functions may be navigated to as shown in Fig.


Pages:
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41