how to facebook shoutbox open , with clicked friendname

Posted by Surendra Singh on Stack Overflow See other posts from Stack Overflow or by Surendra Singh
Published on 2014-08-19T23:09:29Z Indexed on 2014/08/23 4:20 UTC
Read the original article Hit count: 210

Filed under:
|
|

Hey everyone i need source code for shotbox open with clicked friend name like facebook

i tried it but ... it is opening with only one friend name .... i want it will open with the name of friend whom name or image is clicked

My code is something like this

<tr data-name="<?php echo $online_user_name; ?>">
  <td>        
    <div <?php echo $online_user_id; ?>">          
      <img src="../../social_users/<?php echo $online_user_gender; ?>/<?php echo $online_user_Email; ?>/Profile/<?php echo $online_user_pic; ?>" height="30" width="30" style="border-radius: 20px; border: 2px solid #fff;" onclick="shoutbox_open();">
    </div>
  </td>
  <td style="color:#ffffff;">        
    <div <?php echo $online_user_id; ?> style="text-transform:capitalize; text-decoration:none; color:#6A7480;" onclick="shoutbox_open();">          
      <?php echo $online_user_name; ?>
    </div>
    &nbsp;
  </td>

  <td>
    <img src="background_file/background_icons/online_symbol.png"  />
  </td>      
</tr>

<div id="shout_box">
  <div id="header" >
    <span>
      <?php echo $online_user_name; ?>
    </span>
    <div id="close_btn" onclick="shoutbox_close();">
      &nbsp;
    </div>
  </div>
  <div id="toggle_chat">
    <div id="message_box">
    </div>
    <div id="user_info">
      <input name="shout_username" id="shout_username" type="text" placeholder="Your Name" value="" maxlength="15" />
      <input name="shout_message" id="shout_message" type="text" placeholder="Type Message Hit Enter" maxlength="100" />

    </div>
  </div>
</div>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about php