title: Call a Jquery function to start from php
body: <p>In my PHP I am returning and updating a online users box however as it Echos each line out I also want it to activate a Jquery function. So if there is data there it will then echo it out and a Jquery function will take place. </p>
  
  <p>example of php code ... </p>
  
  <pre><code>if($count1 &gt; 0) {
  
  foreach (user_list($user_name) as $user){
         echo $user . "&lt;br /&gt;";
  
  };
      echo ;// a message to activate a jquery function called userdisplay;
  };  
  </code></pre>
  
  <p>and the jquery code would look something like this...</p>
  
  <pre><code>    function userdisplay(){
     //do some amazing code like slide picture in from left fade text in at the top etc. 
  
  
      };
  </code></pre>
  
  <h3>(I am not asking for help on the code which the function will do this is just an example)</h3>
  
  <p>Many thanks to anyone with an idea of how i should go about this my mind is completely blank.</p>