whats meant by demo.lightBox

1 Answer 12 Views
LightBox
khaled
Top achievements
Rank 1
khaled asked on 02 Mar 2022, 06:53 PM

I'm new in java script code i can't understand in the following code what is 'demo' is it the page or browser or what

   demo.lightBox = $find("<%=RadLightBox1.ClientID %>");

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 03 Mar 2022, 02:32 PM

Hello khaled,

Usually the demo variable is used in our demos in order to be able to access variables assigned in the aspx page (like controls accessed by ClientID, which is not available from an external JS file).

For example, in the LightBox overview demo, the "demo" variable is defined in the scripts.js file, while its value is assigned in the aspx page:

http://somup.com/c3ee2wTZW7

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
LightBox
Asked by
khaled
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or