Page 1 of 1

WindowElement, GadgetElement

Posted: Thu May 01, 2014 2:38 pm
by eddy
- Retrieves Element from Gadget or Window
- 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

Re: WindowElement, GadgetElement

Posted: Thu May 01, 2014 3:28 pm
by Peter
eddy wrote:

Code: Select all

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
Thanks! Please take a look at the last curly bracket.

Greetings ... Peter

Re: WindowElement, GadgetElement

Posted: Thu May 01, 2014 3:30 pm
by eddy
fixed