Databases Reference
In-Depth Information
The following steps will point the file prefix to a local directory for development purposes ( if using a
different web server, change the URL accordingly ):
1.
Create a directory called c:\www\FromToDatePicker .
2.
Edit the plug-in and scroll down to the Settings region. Set the File Prefix
field to http://localhost/FromToDatePicker/ ,as shown in Figure 3-7.
Figure 3-7. Settings: File Prefix field
Standard attributes define what standard options are available for the application developer to use.
To start, check the options as shown in Figure 3-8.
Figure 3-8.Choosing standard attributes
Including JavaScript Code
The next thing to do is add the JavaScript code to display the calendar and add constraints so the from
and to dates are within a valid range. To display the date picker, you'll use jQuery UI date picker, which
is the same tool that APEX uses for the standard date picker. The main difference is that you'll add
additional support for the date restrictions.
Note You can get more information about the jQuery UI date picker from
http://jqueryui.com/demos/datepicker/ .
There are two components to adding JavaScript to a plug-in. The first is to write some JavaScript
files with the plug-in. The second is to integrate the JavaScript code with the plug-in.
 
Search WWH ::




Custom Search