Useful Initialization and Render Scripts

Contains tips for configurators working with Aware IM
Post Reply
pureist
Posts: 427
Joined: Sun Jan 24, 2016 10:00 pm

Useful Initialization and Render Scripts

Post by pureist »

This Topic is intended to contain a compilation/library of Posts containing useful Initialization and Render Scripts.
Structure the wording of the Post's Subject accordingly so the Post can be found in a search.
Last edited by pureist on Sat Oct 08, 2016 3:52 am, edited 1 time in total.
pureist
Posts: 427
Joined: Sun Jan 24, 2016 10:00 pm

render script to change background color of form body

Post by pureist »

var variable_name = $("#" + parser.m_formId).find (".aw-form-body");
variable_name.css ("background-color", "color_name _or_code");
eg.:
var thisForm = $("#" + parser.m_formId).find (".aw-form-body");
thisForm.css ("background-color", "black");
or,
var thisForm = $("#" + parser.m_formId).find (".aw-form-body");
thisForm.css ("background-color", "#abcdef");

thisForm.css ("color", "green") [.. change the color of text labels to green]
refer following for listing of properties which may be available to set:
http://www.w3schools.com/cssref/pr_border-style.asp
Last edited by pureist on Fri Oct 14, 2016 3:03 pm, edited 1 time in total.
pureist
Posts: 427
Joined: Sun Jan 24, 2016 10:00 pm

init. script to set focus to first input field in a form

Post by pureist »

Last edited by pureist on Fri Oct 14, 2016 3:04 pm, edited 2 times in total.
pureist
Posts: 427
Joined: Sun Jan 24, 2016 10:00 pm

render script 2 set focus to first filter input field in a q

Post by pureist »

Last edited by pureist on Fri Oct 14, 2016 3:07 pm, edited 1 time in total.
Post Reply