1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Including Javascript files in Master Page

Including Javascript files in Master Page

5 posts, 0 answered
  1. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    29 Jan 2010
    Link to this post
    HI all,

      I have a master page that has a link to my custom.js file. 
    <script src="script/custom.js" type="text/javascript"></script>

    When every I add a child page to the site, the child page is unable to locate the javascript file.  All parent pages are able to load the javascript file.  What is the best way to link a javascript file, where all pages can see the javascript file?

    Thanks,
    David
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    29 Jan 2010
    Link to this post
    Hi David ,

    Thank you for posting your question. 

    Please take a look at the solution proposed here - http://www.sitefinity.com/blogs/georgichokov/posts/09-03-25/how_to_use_jquery_and_other_javascript_libraries_in_sitefinity.aspx

    This should work for you. 

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    30 Jan 2010
    Link to this post
    Hi Georgi, thanks for getting back with me.  I found that later on in the day.  I ended up using the telerik script manager in master page, it appears to work well. 

    I try searching for term javascript and kept getting no results.  Later in day, I try again, and came up with the link below.  Is the search working correctly for the forums?

    Thanks,
    David
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    30 Jan 2010
    Link to this post
    Hi David ,

    The forums search should work correctly. I got 40 pages when tried to search for "javascript". Also, the post is from our blogs.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. David
    David  avatar
    78 posts
    Registered:
    29 Dec 2008
    30 Jan 2010
    Link to this post
    Hi Ivan,
       I just check using JavaScript got the same about 40 pages.  Must have been a fluke.  I need to remember to search the blogs, I sometimes forget to search there.  Anyway everything is going good on the project, with a launch date of next Tuesday at a Trade Show in Vegas.

    David 
Register for webinar
5 posts, 0 answered