More in this section

Forums / Bugs & Issues / JQuery Rounded Corners on MasterPage

JQuery Rounded Corners on MasterPage

2 posts, 0 answered
  1. Jase
    Jase avatar
    5 posts
    Registered:
    30 Jun 2011
    26 Jul 2011
    Link to this post
    Hey folks,

    I'm trying to use JQuery rounded corners to be applied to a div I have. However I can't seem to get the corners rounded. I'm actually applying on the master page so that its inherited on all of the sub-pages as well. I'm not sure if naturally JQuery exists within the project and so me referencing it twice could be an issue, can it be? 

    I created as separate page to apply the JQuery and it works, however when applied to the MasterPage it doesn't call the function at all. Can someone advise if there is a particular way for using JQuery in the MasterPages please.

    I'm using these references. 

    01.<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    02.     
    03.    <script type="text/javascript" language="javascript" src="https://raw.github.com/malsup/corner/master/jquery.corner.js"></script>
    04.    <script language="javascript" type="text/javascript">
    05.        $(document).ready(function () {
    06. 
    07.            $('#articletitle').corner();
    08.        });
    09.</script>
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    27 Jul 2011
    Link to this post
    Hi Jase,

    You can use javascript coding in .master file by referencing the needed .js and then calling them in <script> divs. Include the JS files like in the sample.  Please check code example bellow:

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script
       <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script
       <script
           your code here
       </script>


    Greetings,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested 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