Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Uncaught TypeError : jquery.chatjs.controller.ts:98 #26

Open
manjuarun opened this issue Jul 14, 2016 · 5 comments
Open

Uncaught TypeError : jquery.chatjs.controller.ts:98 #26

manjuarun opened this issue Jul 14, 2016 · 5 comments

Comments

@manjuarun
Copy link

Hi,

Could you help me to resolve this issue

jquery.chatjs.controller.ts:98Uncaught TypeError: Cannot read property 'isMaximized' of undefined.

Because of this issue, could not explore further to see rest of the application and how it works.

Appreciate your support on this.

capture1

Thanks,
Manju

@rpaschoal
Copy link
Contributor

rpaschoal commented Jul 14, 2016

Hi,

Could you also post the steps to reproduce this error? Did you make any changes to the code itself? I never saw this happening before when I was using this plugin.

Cheers.

@manjuarun
Copy link
Author

Hi,
I downloaded this file and extracted and then ran without changing anything.
image

In chrome, its showing nothing. But in the developer window error was like this. But in IE, exception got caught in the html page, which says isMaximized property is null.

Thanks,
Manju

@rpaschoal
Copy link
Contributor

Could you try cloning the project from GitHub instead?

Not sure how well updated the website is.

Cheers.

@MrGorki
Copy link

MrGorki commented Aug 21, 2016

Having same issue even after installing version 2.20 through Nuget

@vkelman
Copy link

vkelman commented Oct 18, 2016

Guys, I think I know what the issue is! Application doesn't run correctly in a sub-folder, but runs at a web-server root level.

I got code from GitHub, didn't make any changes. On my Win7 workstation under IIS I added virtual directory pointing to ChatJs. So, URL is http://localhost/chatjs/

  • In IE 11 chat is not displayed and F12 tool shows an error similar to decribed above;
  • Basically the same in Firefox, just error is a bit different;
  • In Chrome chat works, but I got GET http://localhost/Chatjs/sounds/chat.ogg 404 (Not Found)
    Correct URL would be http://localhost/chatjs/Chatjs/sounds/chat.ogg. That gave me an idea: apparently application running in IIS sub-folder 'chatjs' is not handled correctly.

And yes - running it as at root level using live-server fixes errors. Chat is working in all three browsers and sound works as well. Not sure how Chrome managed to get it partially working in a sub-folder. But relative paths should be fixed allowing to work in a sub-folder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants