investigating Chat issues

lornawebber
@lornawebber
7 years ago
334 posts
In addition to the chat window causing the menu to be pushed off-screen... see https://www.jamroom.net/the-jamroom-network/forum/design-and-skin-customization/48304
we have a problem where text typed into a field on a page appears in the chat conversation even when the chat window was closed when it was typed.
Example: I attach two screenshots. I open the chat window on this page. After I close it, anything I type into the Search box comes up in the chat. I don't see it until I open the chat window again. In my second screen shot, you can see all the bits of text from searches.

I also found that when I put a single image in a chat message, and then view it, I can scroll right to other images that belong to the profile I'm on. I will try to get you an example of that.

What might cause text to appear in the chat conversation while the chat window is closed?
We had an issue a while back where clicking in a pop-up window (I think it was photo album selection) acted as though the pop-up wasn't there. The click actioned whatever was underneath the pop-up. That was fixed for us. In this case, the chat window isn't visible but it still seems to be registering keystrokes that are made on the page.
updated by @lornawebber: 04/20/17 11:34:21PM
brian
@brian
7 years ago
10,148 posts
lornawebber:
we have a problem where text typed into a field on a page appears in the chat conversation even when the chat window was closed when it was typed.
Example: I attach two screenshots. I open the chat window on this page. After I close it, anything I type into the Search box comes up in the chat. I don't see it until I open the chat window again. In my second screen shot, you can see all the bits of text from searches.

I have just tested this here on jamroom.net chat and can't replicate this - you have access to the hosted chat here, can you let me know if you can replicate it here? If you can let me know the exact steps. The way I test was to close the chat, then run a site search, and it all worked.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
lornawebber
@lornawebber
7 years ago
334 posts
I don't think I have access to the hosted chat - perhaps because I'm here via @roy-simmons ? I can't see a chat icon on this page - is there some other access to it?
I'll ask Roy to test it - he experienced the same problem on our site. We haven't made chat available in any quota other than Admin, as yet. Thanks for looking.
paul
@paul
7 years ago
4,326 posts
Chat icon is on the right near the bottom of the window. Are you not seeing it?


--
Paul Asher - JR Developer and System Import Specialist
lornawebber
@lornawebber
7 years ago
334 posts
I'm not seeing it. Roy says he will look tomorrow. I don't have the same privileges as Roy so that could be why.
brian
@brian
7 years ago
10,148 posts
lornawebber:
I'm not seeing it. Roy says he will look tomorrow. I don't have the same privileges as Roy so that could be why.

I still have your login and have just tested this on your site and do not see any issues. What browser/OS are you using?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
lornawebber
@lornawebber
7 years ago
334 posts
I'm using Firefox on Windows XP (still). Roy can see the same issue, I think he may be using Chrome on Windows 10?
I have tried it again just now and got the same result.
I went to the Images view and put in a search for 'reflections' and got the results. Then I reset the search.
I opened the chat window and put a comment on the Admin Test conversation.
I closed the chat window.
I entered the search term "splash" into the search box and got the results.
I then opened the chat window again.
You can see that the search text 'splash' has appeared in the chat comment box.
brian
@brian
7 years ago
10,148 posts
I've just tested the exact steps you've outlined, both on my Mac and on a Windows XP install running Firefox, and I am not able to replicate the issue. So there has to be a step missing here, or something else going on. What is the _initial_ state of chat when you run the first search for "reflections"? You say you "open chat" so I assume at that step it is closed.

Also - I do see your header graphic being slid over - I believe I can get that working correctly so will test that out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
7 years ago
7,714 posts
cant tell from the screenshot, whats the URL in that "splash" search?
michael
@michael
7 years ago
7,714 posts
I see this:
lornawebber
@lornawebber
7 years ago
334 posts
@michael , sorry for the delayed response. I see you found the url.
I believe you must first post a comment on the chat conversation to provoke this problem. After you've posted a comment, close the chat window and then do your search.
I notice that there is a wider space on your screen shot between the chat window and the images. I wonder if you can zoom your screen so that it overlaps the chat window?
In the last screenshot I posted, I had made an earlier comment on that chat conversation. Then I closed the chat window and I typed only into the Search box. When I opened the chat window again, the text was also in the box where you type a chat comment.

In case my terminology is incorrect, to open the chat window I click the chat icon. I close the chat window by clicking the right-arrow thingy that makes it minimise to the right. I open it again by clicking the chat icon.

I just tried it again and I'm beginning to think it's a timing problem.
First I followed the steps I gave you earlier, chat text "Lorna's second test" and searching "ice storm". The search term appeared in the chat text box, but without the quotation marks. I entered it into the chat and left a further comment.
I then did a couple more searches; 'squirrels', then 'pinecones' then 'mushrooms'. Only the word 'pine' appeared in the chat box.

It seems to me that the chat text box is remaining active for a while, even after I have closed the chat window, perhaps while the page is loading? Sometimes the text is entered into the chat conversation and sometimes it is just in the box,and perhaps that depends whether or not I have done an Enter keystroke on the page.

Sorry it's not easy to explain, but I will try to narrow it down with more testing.
updated by @lornawebber: 01/17/17 02:32:23PM
brian
@brian
7 years ago
10,148 posts
I've just tested this again by doing a chat post FIRST, but still am not seeing any issues.

However - what I will do is make it so when the chat window is closed, the textarea for typing will be disabled - that way nothing COULD get posted, whether it be a timing issue or whatnot.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
7 years ago
10,148 posts
I have just added that in on your site - test that and let me know if that works.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
lornawebber
@lornawebber
7 years ago
334 posts
Sorry. It's still doing it. See screen shot.
I searched 'cats' and that was fine. Then I reset the search and typed 'kitty kittens', which did appear in the chat text box.

I have noticed something this time : It seems that the cursor sometimes disappears from the search box when I'm typing, and it is those keystrokes that appear in the chat box when the chat window is closed. I'm trying to pinpoint the circumstances when the cursors goes AWOL.
Strumelia
Strumelia
@strumelia
7 years ago
3,603 posts
FWIW... I tested this as per Lorna's steps on my jr6 site, from windows 7 on Chrome. I wasn't able to produce the glitch.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
lornawebber
@lornawebber
7 years ago
334 posts
I think I have something.
If you quickly position the mouse pointer in the search box when you close the chat window, you don't get a blinking cursor. Anything you type into it at that point goes into the chat box.
updated by @lornawebber: 01/17/17 03:04:54PM
brian
@brian
7 years ago
10,148 posts
Hmm. I don't see that is possible - as soon as you minimize your chat window, the textarea is disabled. It would literally have to "sneak in" in the microseconds between the time you clicked close and the javascript disables that text area.

Something else has to be going on here.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
7 years ago
10,148 posts
lornawebber:
I think I have something.
If you quickly position the mouse pointer in the search box when you close the chat window, you don't get a blinking cursor. Anything you type into it at that point goes into the chat box.


Can you tell me how you're doing that? The chat pane should close in about 300 milliseconds, so moving your mouse from the "close" button to the "search" box is kind of an acrobatic move - I can't do it hear on my laptop.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
lornawebber
@lornawebber
7 years ago
334 posts
OK. I think this occurs if I don't click into the search box or if I click into it before the page is fully loaded. It's the stuff I type when I haven't clicked into the Search box that comes up in the chat. There is no sneaking involved - I can type loads of stuff that turns up in chat, provided I haven't clicked into the search box.
I don't know why I haven't realised this before. Sorry.
lornawebber
@lornawebber
7 years ago
334 posts
Yes, I've just tried that again. On the Images page, the search box contains the word 'search' until you click into it. If I click in the search box before the Images page is fully loaded, the blinking cursor is replaced by the word 'search' again, and anything I type then goes into my minimised chat window.
brian
@brian
7 years ago
10,148 posts
lornawebber:
Yes, I've just tried that again. On the Images page, the search box contains the word 'search' until you click into it. If I click in the search box before the Images page is fully loaded, the blinking cursor is replaced by the word 'search' again, and anything I type then goes into my minimised chat window.

I think with a slow loading system you might see this. The chat message box is focused (by default) on page load. So if you are able to click search BEFORE the document.ready handler fires, then when document ready fires the focus will move to chat.

Since a lot of stuff relies on document.ready, I'm not sure of a solution for this on slow systems, but I will think about it.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
lornawebber
@lornawebber
7 years ago
334 posts
So the focus moves to chat even though the chat window is closed?
brian
@brian
7 years ago
10,148 posts
lornawebber:
So the focus moves to chat even though the chat window is closed?

No - if the chat is closed it should not get focus. I will check the JS and make sure it is not being fired if closed.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
7 years ago
10,148 posts
Yes - I believe that is the issue. With chat closed it is still trying to grab focus - I will have this fixed in the next release.

Thanks for hanging in there and helping me get to the root if the issue :)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
lornawebber
@lornawebber
7 years ago
334 posts
brian:
Thanks for hanging in there and helping me get to the root if the issue :)

Ditto.

Tags