0
naurinrr created
Hi,
I am implementing contextual chat where users can chat about a particular record instead of system wide chat. Please see attached for design layout.
I don't get any errors but the scripts are not working either. I understand this might be more of a jquery question than the framework but I am stuck so thought will check here. The layout already has all the scripts needed for chat loaded. The renderbody in layout will render my ViewModal page which has,
<div class="tab-pane" id="m_tabs_2_1" role="tabpanel">
@Html.Partial("~/Areas/Petra/Views/Layout/_ChatBar.cshtml")
</div>
Any help will be appreciated.
Thanks
3 Answer(s)
-
0
What scripts?
-
0
The layout has,
@if (isChatEnabled) { @Html.Partial("~/Areas/Petra/Views/Layout/_ChatBar.cshtml") }
and
@if (isChatEnabled) { <script src="@(ApplicationPath)view-resources/Areas/Petra/Views/Layout/_ChatBar.js" asp-append-version="true"></script> <script src="@(ApplicationPath)Common/Scripts/Chat/chat.signalr.js" asp-append-version="true"></script> }
Now I am rendering the chat partial from my own view so included the scripts in that view in a Scripts section at the bottom.
-
0
@naurinrr
Can you see if _ChatBar.js is loaded or not on the browser's network tab ?