WindowElement, GadgetElement
Posted: Thu May 01, 2014 2:38 pm
- Retrieves Element from Gadget or Window
- These functions returns result in HTML or Jquery format.
- These functions returns result in HTML or Jquery format.
Code: Select all
Procedure.i WindowElement(Window, UseJquery.b=#True)
Protected winObject=WindowID(Window)
!return (v_winObject && v_winObject.element)? v_UseJquery? $(v_winObject.element):v_winObject.element:null;
EndProcedure
Procedure.i GadgetElement(Gadget, UseJquery.b=#True)
Protected gadgetObject=GadgetID(Gadget)
!return (v_gadgetObject && v_gadgetObject.div)? v_UseJquery? $(v_gadgetObject.div):v_gadgetObject.div:null;
EndProcedure