locked
Not able to add script reference in configuration page in crm 2011 RRS feed

  • Question

  • Hi have created a crm 2011 Package project and added the one script file, one HTML page and one css file and deployed the solution on crm solution that have prefix new_

    I am trying to add the reference of script fine and css on my HTML page but it is giving the error as web resource not found.

    Wednesday, September 25, 2013 6:20 AM

All replies

  • Hi,

    Did you try by manually creating CSS and then HTML file in CRM? After that you can refer the style sheet using Relative URL.

    <head>

      <script type="text/javascript" src="../scripts/jquery.js"></script>  

      <script type="text/javascript" src="../scripts/myscript.js"></script>  

      <link rel="stylesheet" type="text/css" href="../Config.css" /> 

    </head>

     Thanks!

    Wednesday, September 25, 2013 6:42 AM
  • Hi KalimK,

    I have created a  custom solution. In that solution created a script file and html page. both have now prefix.

    new_test.htm , new_test2.js

    on html page as you mention i have refered the javascript file like

    <script src="../scripts/test2.js" type="text/javascript">

    it is not working.  How to check he relative path of my script file.

    Wednesday, September 25, 2013 7:32 AM
  • Did you try using just

    <script src="../test2.js" type="text/javascript">


    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Wednesday, September 25, 2013 8:41 AM
    Moderator
  • Hi,

    In the above reply I have just provided example. Please try below. It depends upon the name of your HTML file in which you want to refer the JavaScript. Any one of the below should work?

    <script src="new_test2.js" type="text/javascript">

    OR

    <script src="../new_test2.js" type="text/javascript">

    Refer below blog for directory structure that should be followed.

    http://dynamicscrm2011.wordpress.com/2011/05/31/crm-2011-web-resource-part-2-how-to-use-clientglobalcontext-js-aspx/

    Thanks!


    • Edited by Kalim Khan Wednesday, September 25, 2013 9:12 AM
    Wednesday, September 25, 2013 8:58 AM