Databases Reference
In-Depth Information
Figure 11-38. Adding the Offset attribute of the Password plug-in
Now that all the attributes have been added the only remaining step is to include the JavaScript file
that will contain the password widget. First, save the code from Listing 11-5 to a file named
com pluggen password.js . Then, if you're not already there, navigate to the Create/Edit page for the
Password plug-in and complete the following steps as shown in Figure 11-39.
1.
Click Upload New File.
2.
Set File to the file you created: com_pluggen_password.js.
3.
Click Upload.
Figure 11-39. Adding the JavaScript file for the Password plug-in
As was done with the render function, let's do a walkthrough of the code in the JavaScript file. The
first few lines of code both protect references to the $ object and start the pg_password widget. The
Search WWH ::




Custom Search