Avatar of paeep
paeep
Flag for Belgium asked on

sharepoint 2010 include external metrojs in webpart - javascript problem

Hello all,

I'm trying to create a windows8 lookalike for our intranet sharepoint (2010).
I am using metroJS for it (www.drewgreenwell.com/projects/metrojs¿).

Everything is fine, except for the linking part.

When I create my demo page in sharepoint, the links do not work.
When I take a look at the source of the page and save the relevant part locally ('out of sharepoint'), it DOES work.

extract of the HTML code:
<div class="tiles tile-group four-wide">
  <div class="tile-strip four-wide">
    <div id="ctl00_m_g_98183768_fb81_4583_befe_b0ee4504cff9_ctl00_ID1" class="live-tile two-wide emerald" data-mode="slide" data-new-window="true" data-link="http://capricatwo:81">
      <div><p>registrations site</p><span class='tile-title'>registrations</span></div>
      <div><img src='http://capricatwo:81/images/our_logo.gif' /><span class='tile-title'>regs logo</span></div>
    </div>
  </div>
</div>

Open in new window


The 'data-link='-part serves as link. This works on a standalone page but not as part of a webpart in sharepoint.

The links to MetroJS javascript and css are included in the webpart itself.
The link to JQuery is covered in the master page.

Has someone an idea what is the cause of this behaviour or how I can fix this?

Thanks,

     Paul
Microsoft SharePointJavaScriptjQuery

Avatar of undefined
Last Comment
paeep

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
paeep

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23