Try Now
More in this section

Forums / Bugs & Issues / JS not working in folders below the root directory

JS not working in folders below the root directory

2 posts, 0 answered
  1. Cory
    Cory avatar
    8 posts
    27 Sep 2010
    08 Oct 2010
    Link to this post
    Any page that is in the root level directory, ex. http://www.visfire.com/Marketing.aspx , does not have js errors.  However anypage using the same masterpage in the next lowest directory, ex. http://www.visfire.com/Marketing/SearchEngineMarketing.aspx , has a JS error.  Notice the absence of toggle arrows on the "latest work module."

    As soon as the page is moved up in the CMS's sitemap, the JS elements begin to work.

    Help is much appreciated. 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    08 Oct 2010
    Link to this post
    Hi Cory,

    The following scripts

    • http://www.visfire.com/Marketing/js/jquery.ui.widget.js
    • http://www.visfire.com/Marketing/js/jquery.smoothDivScroll-1.1-min.js
    are not loaded and they return status code 404.

    On Marketing page you are loading - http://www.visfire.com/js/jquery.ui.widget.js. Check the path inside the controls which you use. The proffered way is using JsFileLink control -How to use jQuery and other JavaScript Libraries in Sitefinity

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered