1 package js AUTHID CURRENT_USER as
2 /* $Header: ICXJAVAS.pls 120.2 2005/10/07 13:27:28 gjimenez noship $ */
3
4 procedure numeric_characters;
5
6 -- functions and procedure for the start and end of javascript
7 function scriptOpen
8 return varchar2;
9 procedure scriptOpen;
10 function scriptClose
11 return varchar2;
12 procedure scriptClose;
13
14 -- function and proceduer for the start and end of a javascript form
15 function formOpen
16 return varchar2;
17 procedure formOpen;
18
19 -- procedure for the DynamicButton
20 procedure dynamicButton;
21
22 -- function and procedures for the button
23 function button (name varchar2, value varchar2, onClick varchar2)
24 return varchar2;
25 procedure button (name varchar2, value varchar2, onClick varchar2);
26
27 -- function and procedure for the checkbox
28 function checkbox (name varchar2, value varchar2, onClick varchar2,
29 checked boolean)
30 return varchar2;
31 procedure checkbox (name varchar2, value varchar2, onClick varchar2,
32 checked boolean);
33
34 -- function and procedure for the text area
35 function text (name varchar2, value varchar2,
36 sizze integer, onBlur varchar2, onChange varchar2,
37 onFocus varchar2, onSelect varchar2)
38 return varchar2;
39
40 procedure text (name varchar2, value varchar2,
41 sizze integer, onBlur varchar2, onChange varchar2,
42 onFocus varchar2, onSelect varchar2);
43
44 -- The following procedure places a money_decimal script into the html
45 procedure money_decimal(precision number);
46
47 -- The following procedure places a MakeArray script into the html
48 procedure arrayCreate;
49
50 -- The following procedure places checkNumber into the html
51 procedure checkNumber;
52
53 -- The following procedure will replace " with \" in any string
54 procedure replaceDbQuote;
55
56 -- The following procedure places checkNumberValue into the html
57 procedure checkValue;
58
59 -- The following procedure places checkNumberValue into the html
60 procedure checkValuePos;
61
62 -- The following procedure places the null_alert function in the html
63 /* This is a generic function that displays a javascript alert
64 and returns true if the value parameter is null, otherwise it
65 returns false */
66 procedure null_alert;
67
68 -- The following procedure places the spaces_alert function in the html
69 /* This is a generic function that displays a javascript alert
70 and returns true if the value parameter contains spaces, otherwise it
71 returns false */
72 procedure spaces_alert;
73
74 -- equal_alert place a javascript function in the html header
75 -- This is a generic function that accepts two parameters
76 -- The function will display a javascript alert and return true
77 -- if the two parameters are equal
78 procedure equal_alert;
79
80
81 procedure format_number;
82
83 end js;