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

Forums / Developing with Sitefinity / External Javascript Call in Master Page

External Javascript Call in Master Page

4 posts, 0 answered
  1. Rajkumar GS
    Rajkumar GS avatar
    24 posts
    Registered:
    07 Sep 2009
    17 Jan 2011
    Link to this post
    In my Sitefinity project, I am using external javascript files, master page and content pages.

    My current issue is that I cannot call the functions in external javascript page. If the entire code of that file is copied into master page, it is working! This is the code in master page's head section.

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

    Is it necessary to give runat="server" for this. When I tried that compiler is complaining about many syntax error in the external javascript file!!!!! So identifying only on runat="server"


    Please help

    Raj

     

     

     

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Jan 2011
    Link to this post
    Hi Rajkumar,

    Try using JsFileLink control. Please check this post.

    Kind regards,
    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
  3. Rajkumar GS
    Rajkumar GS avatar
    24 posts
    Registered:
    07 Sep 2009
    17 Jan 2011
    Link to this post
    Thanks! It worked.

    Raj
  4. Rajkumar GS
    Rajkumar GS avatar
    24 posts
    Registered:
    07 Sep 2009
    17 Jan 2011
    Link to this post
    Thanks for the quick reply!
Register for webinar
4 posts, 0 answered