How to Associate/tiggger JavaScript with HTM file RRS feed

  • Question

  • Respected Community Members,

                             We recently started playing with CRM 2013 and I got one free navigation plugin from external source. I install that plugin and it does work just fine.

    Now I need to customize the solution according to my corporate needs , so I extracted solution which gave me 4 files (1) jQuery file 2) custom JavaScript file 3) htm file 4) css file ). I customized code little bit, and try to create a plugin with those web resources and publish the plugin.

    I added that htm file to footer of the Account Page which shows up without issue. But some how my javascript doesn't work which suppose to populate the htm file.

    Any idea how to resolve this issue?? How can I make sure whether JavaScript triggers when htm file load?? is there a way to associate them??



    Monday, March 3, 2014 2:01 PM


All replies

  • Hi Nick,

    I believe by "plugin" you're referring to the managed/unmanaged solution that you got from the external source. If you extracted the solution and got the components, and you re-upload them as new web resources, make sure you change the name of the referenced files in the code. For example, if it's referred to as new_filename and your web resources are created as mscrm_filename, make sure you change the referenced name in the codes.

    Other than that if your code is not working as expected try debugging that and see where the error lies. I believe you know JavaScript debugging. It's very difficult to tell why your code is failing because there could be a lot of reasons.

    Monday, March 3, 2014 2:28 PM
  • Respected Community Members,

                 As far as Debugging goes for CRM 2013, can some one point out any good article/instructions, How to Debug JavaScript & Plugin in CRM 2013??



    Monday, March 3, 2014 3:53 PM
    • Marked as answer by Nicksoft2011 Monday, March 3, 2014 7:16 PM
    Monday, March 3, 2014 5:30 PM