Difference between revisions of "Jquery"

From OpenEMR Project Wiki
(document more features.)
(simplify, and add more ontent.)
Line 11: Line 11:
|-
|-
| $(document).ready()
| $(document).ready()
| load jquery executable code as soon as the DOM is loaded, before page contents are loaded.
| Load jquery executable code as soon as the DOM is loaded, before page contents are loaded.
|-
|-
| $("<OBJECTCLASS>").mouseover()
| .attr()
| executed when an object of class <OBJECTCLASS> has a mouse hover over it.
| Called to get the attribute value for only the first element in the matched set
|-
|-
| $("<OBJECTCLASS>").mouseout()
| .click()
| executed when an object of class <OBJECTCLASS> no longer has a mouse hovering over it.
| Executed when an object is clicked on.
|-
|-
| $("<OBJECTCLASS>").click()
| .mouseout()
| executed when an object of class <OBJECTCLASS> is clicked on.
| Executed when an object no longer has a mouse hovering over it.
|-
| .mouseover()
| Executed when an object has a mouse hover over it.
|-
| .toggleClass()
| Called to add an object to/remove an object from a given class.
|}
|}


Line 34: Line 40:
|-
|-
| interface/super/show_lists_popup.php
| interface/super/show_lists_popup.php
| $(document).ready(), $("<OBJECTCLASS>").mouseover(), $("<OBJECTCLASS>").mouseout(), $("<OBJECTCLASS>").click()
| $(document).ready(), .click(), .mouseout(), .mouseover(), .toggleClass
|}
|}
=== Users ===
=== Users ===

Revision as of 05:56, 26 February 2011

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
$(document).ready() Load jquery executable code as soon as the DOM is loaded, before page contents are loaded.
.attr() Called to get the attribute value for only the first element in the matched set
.click() Executed when an object is clicked on.
.mouseout() Executed when an object no longer has a mouse hovering over it.
.mouseover() Executed when an object has a mouse hover over it.
.toggleClass() Called to add an object to/remove an object from a given class.


Files

library/js/jquery-1.2.2.min.js


File Features Used
interface/super/show_lists_popup.php $(document).ready(), .click(), .mouseout(), .mouseover(), .toggleClass

Users



interface/super/show_groups_popup.php interface/logview/logview.php interface/patient_file/encounter/search_code.php interface/patient_file/pos_checkout.php interface/main/left_nav.php interface/main/calendar/find_appt_popup.php