Okay this is starting to bug me. Working on a web based IM system for the site and when a new chat is initiated jQuery adds a name holder and a chat box to the chat bar. For some reason however it doesn't seem to want to work. Here is the code I'm working on now. It checks for active chats in the session after a page refresh and re-adds those chats to the chat bar. Just including that javascript stuff the PHP code is working fine.
$(document).ready(function()
{
jQuery('<div/>', {
id: 'chat_name_<?= $chat_user_id; ?>',
"class": 'chat_name',
text: '<?= $chat_member_name; ?>'
}).appendTo('#chat_bar');
jQuery('<div/>', {
id: 'chat_text_<?= $chat_user_id; ?>',
"class": 'chat_text',
text: '<?= $chat_text; ?>'
}).appendTo('#chat_box');
});
Anyone see what I'm doing wrong?