To add to what Montecristo says. Helpers make it easy to create complex code, doing most of the work for you. For example, in the symfony framework, they have so-called Javascript helpers. These helpers wrap the API provided by the prototype library, which makes making AJAX calls much faster and easier.
Here is an example javascript helper:
<div id="feedback"></div> <div id="indicator" style="display: none">Loading...</div> <?php echo link_to_remote('Delete this post', array( 'update' => 'feedback', 'url' => 'post/delete?id='.$post->getId(), 'loading' => visual_effect('appear', 'indicator'), 'complete' => visual_effect('fade', 'indicator'). visual_effect('highlight', 'feedback'), )) ?>
source share