Видимость переменной jshttp://softtime.ru/forumВидимость переменной jshttp://softtime.ru/forum/read.php?id_forum=4&id_theme=90780#post540046переменные через var не пробовали объявлять?Видимость переменной jsSat, 8 Feb 2014 16:03:06 +0300moonfoxВидимость переменной jshttp://softtime.ru/forum/read.php?id_forum=4&id_theme=90780#post540044console.log( ); дает: ", "string"] А вот так работает: $("#ChatWindow").find("#status").html('tst');Видимость переменной jsSat, 8 Feb 2014 13:38:59 +0300OLiВидимость переменной jshttp://softtime.ru/forum/read.php?id_forum=4&id_theme=90780#post540038а чему вообще у вас по итогу равен status? $("#ChatWindow").find("#status") так ?Видимость переменной jsSat, 8 Feb 2014 03:34:17 +0300moonfoxВидимость переменной jshttp://softtime.ru/forum/read.php?id_forum=4&id_theme=90780#post540037Спасибо. А в чем тогда ошибка в таком коде: $(document).ready(function() { activeUserID = ''; supportChat = $("#ChatWindow"), messagesWr = supportChat.find("#ListDialog...Видимость переменной jsSat, 8 Feb 2014 01:44:05 +0300OLiВидимость переменной jshttp://softtime.ru/forum/read.php?id_forum=4&id_theme=90780#post540026нужно убрать var, чтобы переменная была глобальной. $(document).ready(function() { supportChat = $("#ChatWindow"); });Видимость переменной jsFri, 7 Feb 2014 08:09:14 +0300SfinksВидимость переменной jshttp://softtime.ru/forum/read.php?id_forum=4&id_theme=90780#post540024Имеется такой код: var PM = { tabs: [], Init : function(){ var socket = new io.connect('http://site.com:8080'); if (supportChat){ //...Видимость переменной jsFri, 7 Feb 2014 02:42:57 +0300OLi