Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple widget on sharepoint Page #5

Open
chahat-mca opened this issue Jan 18, 2017 · 2 comments
Open

Multiple widget on sharepoint Page #5

chahat-mca opened this issue Jan 18, 2017 · 2 comments

Comments

@chahat-mca
Copy link

Hi ,

We are struck with a problem while using WW. we have a SharePoint Page in which we have multiple widgets. All widgets are developed using jquery. some widgets are using same resource like jquery.min.js. Problem is that some of the widgets don't render properly. if we remove the widgets and run individually everything works fine

Does WW supports multiple widgets on the same page?can you suggest a solution for this?

Thanks,
Chahat

@juliemturner
Copy link
Contributor

juliemturner commented Jan 18, 2017

Hi Chahat,

Yes, the actual point of the widget wrangler is to help run multiple widgets on the page. If you are having errors when running them together but not when running them separately then there is likely code (functions or variables) that are not properly namespaced so the widgets are stepping on each other. The only way to tell this is to look at the browser's developer console (F12) and review the errors.

-Julie

@BobGerman
Copy link
Contributor

Here is a sample of multiple jQuery widgets running on the same page. Note that the jQuery code is written to only work within the DOM element that contains each widget. Also, they both use the same path to load jQuery and other dependencies, so Widget Wrangler will only load them once across all widgets. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants