title: php submit rating data without reload
body: <p>I'm working with joomla template which make me able to rate on some music album.
  The problem is each time I press rating stars reload the page with damaged layout
  I just need to submit the rating result without reload.
  here are the code:</p>
  <pre><code>        if($album_id) {
              $image_attr = $image_attr_java;
              $return .= &quot;&lt;a href='&quot;.JURI::root(true).&quot;/index.php?option=com_muscol&amp;task=rate&amp;album_id=$album_id&amp;points=$i&amp;type=album'&gt;&quot;.JHTML::image('components/com_muscol/assets/images/star' . $grey.$show_small. '.png' , &quot;$i &quot;.JText::_('out of').&quot; 5&quot; , $image_attr ).&quot;&lt;/a&gt;&quot;;
          } else {
              $return .= JHTML::image('components/com_muscol/assets/images/star' . $grey.$show_small. '.png' , &quot;$points &quot;.JText::_('out of').&quot; 5&quot; , $image_attr );
          }
      }
      return $return;
  }
  </code></pre>