Page 1 of 1

How to get gadget Javascript id?

Posted: Sun Jun 15, 2014 4:46 pm
by karu
Once again, how i can get gadget(example StringGadget) javascript id ?

Thanks
Karu

Re: How to get gadget Javascript id?

Posted: Sun Jun 15, 2014 5:05 pm
by karu
I got answer by myself

Procedure.i GadgetElement(Gadget, UseJquery.b=#True)
Protected gadgetObject=GadgetID(Gadget)
!if (v_gadgetObject && v_gadgetObject.div) { return v_UseJquery? $(v_gadgetObject.div):v_gadgetObject.div; }
EndProcedure