Contact Us
Please fill out the form below and we will get in touch within four business hours.

*
*
*
*
*
*
*Interested In:
(Check all that apply)



 
 
Synergy Corporate Technologies
Synergyonline > Blog > Posts > Building an Accordion with jQuery and SharePoint 2010
Access denied. You do not have permission to perform this action or access this resource.

Comments

GetListData

I keep getting the error: The name 'Common' does not exist in teh current context. Its related to the line:
dt = Common.Common.GetListData(this.WebPart.SiteUrl, this.WebPart.ListUrl, queryXML);

Any help on this error? Thanks
 on 1/30/2012 1:18 PM

Re: Building an Accordion with jQuery and SharePoint 2010

The datatable is gathering data from the SharePoint list via a method I called "GetListData" in a separate class called "Common".  I updated the attached code to include this class file.
System Account on 1/31/2012 12:18 PM

Jquery is not getting called

Hi, I have added a reference to accordin.js but its still not getting called .Do you  know why
Thanks
 on 3/9/2012 10:54 AM

Re: Building an Accordion with jQuery and SharePoint 2010

If you're reference is correct, then you should be able to view the source of your rendered html, copy the accorion.js path into your browser and see the javascript.  If it doesn't render, then the path is incorrect.

Also, I use the Firebug addon in Firefox to view errors in the javascript (the console tab) when the page loads.

Hope this helps.
System Account on 3/9/2012 11:08 AM

accorion .js file syntax error

Hi, the accordion.js file has a syntax error. Need to remove the closing brace } after the closeAnimationIsRunning = true; in the click function. There were a couple of other things but I think this should fix the problem. Also, make sure you reference the jquery library.
 on 3/12/2012 11:41 PM

Re: Building an Accordion with jQuery and SharePoint 2010

Thank you so much I did changed the juery and it had a  "remove the closing brace } after the closeAnimationIsRunning = true" as you mentioned
 on 3/14/2012 5:18 PM

Re: Building an Accordion with jQuery and SharePoint 2010

Good catch on the syntax error in the code.  I revised it and put up a new copy, so that it doesn't happen to anyone else.

Thank you!
Tyler
System Account on 3/19/2012 9:30 AM

SharePoint Experts

Wow, I’ve definitely learned the techniques in this comprehensive tutorial. Thank you for sharing this information.
 on 4/3/2012 3:22 AM

Create WSP for deployment

Hi

Is it possible to make it as an wsp package so it can be deployed ?


Tried to upload the stp file - but can't create a accordian from that..
 on 4/17/2012 6:43 AM

WSP Package

Hi

Do you perhaps have a deployable package for this wonderful solution?
 on 6/14/2012 4:04 AM
1 - 10Next
Access denied. You do not have permission to perform this action or access this resource.

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Captcha

 

Attachments


United States
55 Greens Farms Road
Westport, CT 06880
 
1050 Bishop St.
Suite 176
Honolulu, HI 96813
United Kingdom
Unit 13 Elder Way Waterside Drive Langley Berkshire SL3 6EP
United Kingdom
Singapore
Level 37
Ocean Financial Centre
10 Collyer Quay
Singapore 049315
Asia Pacific
Level 6
115 Pitt Street
Sydney NSW 2000
Australia 
+1800-930-4771
+44 (0)1753 541 000
+(65) 6232 2329
+61 2 9113 7243
United States
United Kingdom
Singapore
Australia
This web page conforms to W3C's "Web Content Accessibility Guidelines 1.0" Level "A" © 2015 Synergy Corporate Technologies
This site is best viewed in IE8 or above. Some features may not render properly if you are using an older browser.