Skip to main content
4 events
when toggle format what by license comment
Jun 8, 2016 at 0:23 comment added Mark Pond One thing to note about that best practices doc; when it says "it won't work" and "it won't match", the actual result is an empty string output, not an error. So, in the event that $Component can't find the element you specified, your page markup will just have nothing there. i.e. alert('{!$Component.abc123'); would just be rendered as alert('');
Jun 8, 2016 at 0:10 vote accept Gabe Rothman
Jun 8, 2016 at 0:09 comment added Gabe Rothman Thanks so much mark! You're a life saver. Great point regarding using $Component syntax. I'm basically self-taught with respect to Apex and VF coding and am a total noob when it comes to JS so I'm just kind of hacking my way through it at this point. I ultimately decided to go with the $Component syntax as it is definitely much simpler.
Jun 7, 2016 at 22:57 history answered Mark Pond CC BY-SA 3.0