Developer Guide 2: Chat > Writing Controllers and API : Location of chat.js

I'm following the Developer Guide 2: Chat and I'm in Writing Controllers and API. I needed to create a chat.js file and place it in website_chat/templates/includes/ to get additional chat output to show up onscreen. However, when I do so, nothing happens. I have also tried putting this file in website_chat/templates/pages alongside the chat.html and chat.py files, but with no success. What do I need to do to get these changes to appear in the browser output? Thanks!



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/be11964b-e39c-4c1a-a091-138020f056a8%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
You have to explicitly include it in your html
On 13-Jun-2014, at 10:33 pm, Chris Horton <ch...@thedrainage.com> wrote:

I'm following the Developer Guide 2: Chat and I'm in Writing Controllers and API. I needed to create a chat.js file and place it in website_chat/templates/includes/ to get additional chat output to show up onscreen. However, when I do so, nothing happens. I have also tried putting this file in website_chat/templates/pages alongside the chat.html and chat.py files, but with no success. What do I need to do to get these changes to appear in the browser output? Thanks!



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/be11964b-e39c-4c1a-a091-138020f056a8%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/801C75FF-055B-494F-95A4-26FB55FE576A%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.