Solved

Jquery and Rounded Corners in WSS 3.0 (Sharepoint)

Posted on 2009-07-07
4
1,430 Views
Last Modified: 2012-05-07
I'm using the example shown here:
http://sharethelearning.blogspot.com/2008/11/jquery-in-sharepoint-example-rounded.html

to integrate rounded corners into WSS 3.0 site using Jquery and a plugin.

The code is attached. Arcel.clanhq.net is a server of mine.

I use the content editor web part on the page and add the code. Nothing happens. Can someone help me get this working?
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> 

<script type="text/javascript" src="http://arcel.clanhq.net/jquery/jquery.corner.js"></script>

<script type="text/javascript">

function AddQuickLaunchCorners()
 

{
 

    $(".ms-quicklaunchouter").corner("10px");
 

    $("div.ms-quickLaunch h3.ms-standardheader span div.ms-quicklaunchheader").css("background-color", "#c1ecff").corner("top 7px");
 

    $("table.ms-recyclebin:last td").corner("bottom 7px");
 

}

</script>

Open in new window

0
Comment
Question by:Anti-Mhz
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:MsShadow
Comment Utility
Where do you call AddQuickLanchCorners?
0
 
LVL 1

Author Comment

by:Anti-Mhz
Comment Utility
i thought that script pasted above calls for it
0
 
LVL 19

Accepted Solution

by:
MsShadow earned 250 total points
Comment Utility
No, it just described the function. You need to call it :

$(document).ready(function() {
   AddQuickLaunchCorners();
 });

take a look at this tutorial to understand more about it:
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
0
 
LVL 1

Author Comment

by:Anti-Mhz
Comment Utility
im going off this guide:

http://sharethelearning.blogspot.com/2008/11/jquery-in-sharepoint-example-rounded.html

but it seems like there's more to it. Thank you.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now