mardi 1 mai 2012 11:50
During development of a custom web part I used tinyscrollbar to get a nice looking scroll bar to mach custom layout. Unfortunately it turns out that if you put two same web parts using tinyscrollbar on page, scrollbar works only on first one added to the page.
As far as i understand it happens due to tinyscrollbar targetting only unique ids. Can I generate id automatically and use it when web part is placed on page?
Toutes les réponses
mercredi 2 mai 2012 07:18
your issue is related to jquery I think can u please paste your code here?
you can generate ids automtically just paste ur code and we will help u in this
If the reply was helpful or informative, please remember to mark it as answer or vote as helpful. MCITP SHAREPOINT
lundi 7 mai 2012 09:21
When you put the web part to a site page, SharePoint will generate a client id for the user control in web part, so if you put two web parts, all the user control in these two web parts are unique.
So if you want to make the tinyscrollar work, you should target the tinyscrollar to the client id, so there are two ways:
1.View the source code and get the client id.
TechNet Community Support
- Marqué comme réponse Shimin Huang vendredi 11 mai 2012 06:42