You canât do that in a client-side script: the record is no longer available once the page is displayed in the end-userâs browser.
If you want to make the record available (or parts of it) to the browser, then one of the server-side scripts will have to store the relevant values in an element attribute somewhere in the HTML. You client-side script will then be able to retrieve that value since it is stored directly in the HTML.
So for instance, your server-side script would do something like the following to store the value of the field in an element whose ID is myDIV:
Can you help me figure out how to do it? because the background changes according to the âClass Levelâ variable. In some backgrounds the design is not sitting right.
Hi,
I am newbie. What does it mean âserver-side scriptâ ? Is it a script in Scripts Pane in Designer GUI? If âyesâ can I use syntax $(ââŠâ). instead of query(ââŠâ). ?
I guess client-side script itâs Resources\JavaScripts*js
Yes, server-side scripts are the ones included in the Scripts Pane. And since they are server-side scripts, you canât use $(), which is the jQuery syntax for client-side scripts (i.e. scripts that run in the browser).