Jquery
From OpenEMR Project Wiki
Revision as of 07:42, 26 February 2011 by Julia Longtin (talk | contribs) (add find_appt_popup function dependencies.)
In-tree Versions
Several versions of jquery are in use in the OpenEMR codebase. the following is a list of versions, who uses them, and for what.
Jquery 1.2.2
Feature | Description | Version Added |
---|---|---|
$(document).ready() | Load jquery executable code as soon as the DOM is loaded, before page contents are loaded. | 1.0 |
.attr() | Called to get the attribute value for only the first element in the matched set | 1.0 |
.css() | Get the value of a style property for the first element in the set of matched elements. | 1.0 |
.click() | Executed when an object is clicked on. | 1.0 |
.focus() | Bind an event handler to the "focus" JavaScript event, or trigger that event on an element. | 1.0 |
.mouseout() | Executed when an object no longer has a mouse hovering over it. | 1.0 |
.mouseover() | Executed when an object has a mouse hover over it. | 1.0 |
.submit() | Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. | 1.0 |
.toggleClass() | Called to add an object to/remove an object from a given class. | 1.0 |
.val() | Called to get the current value of the first element in the set of matched elements. | 1.0 |
Files
- library/js/jquery-1.2.2.min.js -- Contains the entirety of the jquery 1.2.2 implementation in OpenEMR.
jQuery Treeview 1.3
Treeview is used by interface/main/left_nav.php to create the collapsable menus on the left side of the screen. It requires anything including it to first include jquery 1.2+. only Treeview 1.4.1 is tested with jquery 1.4.3.
Files
- library/js/jquery.treeview-1.3/jquery.treeview.min.js -- Contains the entirety of the treeview implementation.
1.2.2 Users
File | Features Used |
---|---|
interface/super/show_lists_popup.php | $(document).ready(), .click(), .mouseout(), .mouseover(), .toggleClass() |
interface/super/show_groups_popup.php | $(document).ready(), .click(), .mouseout(), .mouseover(), .toggleClass() |
interface/logview/logview.php | $(document).ready(), .click(), .mouseout(), .mouseover(), .toggleClass(), .val() |
interface/patient_file/encounter/search_code.php | $(document).ready(), .click(), .css(), .focus(), .mouseout(), .mouseover(), .submit(), .toggleClass() |
interface/patient_file/pos_checkout.php | no jquery functionality used? |
interface/main/left_nav.php | jquery only included so as to include Treeview. |
interface/main/calendar/find_appt_popup.php | $(document).ready(), .dblclick(), .mouseout(), .mouseover(), .toggleClass() |