{"id":992,"date":"2014-10-12T09:38:41","date_gmt":"2014-10-11T22:38:41","guid":{"rendered":"http:\/\/excelatfinance.com\/online\/?page_id=992"},"modified":"2015-10-19T21:56:28","modified_gmt":"2015-10-19T10:56:28","slug":"object-naming-conventions","status":"publish","type":"page","link":"https:\/\/excelatfinance.com\/online\/object-naming-conventions\/","title":{"rendered":"User Form object naming conventions"},"content":{"rendered":"<style>\ntable {\n  border-collapse: collapse;\n}<\/p>\n<p>td, th {\n  border: 1px solid #999;\n  padding: 0.5rem;\n  text-align: left;\n}\n<\/style>\n<p><?php include \"..\/includes\/access.php\"; ?><\/p>\n<p>Controls should be named in a consistent manner, with a prefix to identify the object type.<\/p>\n<p>Here are some suggestions:-<\/p>\n<table>\n<thead>\n<tr>\n<th>Control type<\/th>\n<th>prefix<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"30%\">Check box<\/td>\n<td width=\"15%\">chk<\/td>\n<td>chkIncludeHeader<\/td>\n<\/tr>\n<tr>\n<td>Combo box<\/td>\n<td>cbo<\/td>\n<td>cboOptType<\/td>\n<\/tr>\n<tr>\n<td>Command button<\/td>\n<td>cmd<\/td>\n<td>cmdClose<\/td>\n<\/tr>\n<tr>\n<td>Frame<\/td>\n<td>fra<\/td>\n<td>fraResult<\/td>\n<\/tr>\n<tr>\n<td>Form<\/td>\n<td>frm<\/td>\n<td>frmOptPricer<\/td>\n<\/tr>\n<tr>\n<td>Image<\/td>\n<td>img<\/td>\n<td>imgXLFx32<\/td>\n<\/tr>\n<tr>\n<td>Label<\/td>\n<td>lbl<\/td>\n<td>lblLogo<\/td>\n<\/tr>\n<tr>\n<td>List box<\/td>\n<td>lst<\/td>\n<td>lstContacts<\/td>\n<\/tr>\n<tr>\n<td>Multi page<\/td>\n<td>mup<\/td>\n<td>mupModels<\/td>\n<\/tr>\n<tr>\n<td>Option button<\/td>\n<td>opt<\/td>\n<td>optModels<\/td>\n<\/tr>\n<tr>\n<td>Scroll bar<\/td>\n<td>scr<\/td>\n<td>scrIntRate<\/td>\n<\/tr>\n<tr>\n<td>Spin button<\/td>\n<td>spn<\/td>\n<td>spnPages<\/td>\n<\/tr>\n<tr>\n<td>Tab strip<\/td>\n<td>tbs<\/td>\n<td>tbsMethods<\/td>\n<\/tr>\n<tr>\n<td>Text box<\/td>\n<td>txt<\/td>\n<td>txtStkPrice<\/td>\n<\/tr>\n<tr>\n<td>Toggle button<\/td>\n<td>tgl<\/td>\n<td>tglFullScreen<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><?php include '..\/includes\/next-prev.php'; ?><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Controls should be named in a consistent manner, with a prefix to identify the object type. Here are some suggestions:- Control type prefix Example Check box chk chkIncludeHeader Combo box cbo cboOptType Command button cmd cmdClose Frame fra fraResult Form frm frmOptPricer Image img imgXLFx32 Label lbl lblLogo List box lst lstContacts Multi page mup [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false},"jetpack_shortlink":"https:\/\/wp.me\/P59BC0-g0","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/pages\/992"}],"collection":[{"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/comments?post=992"}],"version-history":[{"count":5,"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/pages\/992\/revisions"}],"predecessor-version":[{"id":3762,"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/pages\/992\/revisions\/3762"}],"wp:attachment":[{"href":"https:\/\/excelatfinance.com\/online\/wp-json\/wp\/v2\/media?parent=992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}