"enhancedText.component"
sfdcjqueryenhancements
"EnhancedTextController.cls"
sfdcjqueryenhancements
One trick to making the component inputs work is to factor in the quirky DOM ID's generated by Salesforce. This is addressed in the following blog post from Wes Nolte.
"VisualForce Element Ids in jQuery selectors"
The Silver Lining
To clarify Wes's post, the function is defined as follows:
function esc(myid) { return '#' + myid.replace(/(:|\.)/g,'\\\\$1'); }
Also, the
esc
function cannot be called with a literal! The String must be stored in a var
first, and the var
should then be passed to the esc
function.Whew! I'm not done with my custom input component yet, but I definitely see bright rays of hope.