Copy link to clipboard
Copied
Hi,
I am struggling with integration of DataTables plug-in into a website made with Muse and hosted on BC. I've seen some tutorials on BC gurus and for a while it partially worked meaning part of the CSS stylesheet for Data Tables got applied to the Data and the table. However once I changed the data on the spreadsheet and uploaded it into the BC, everything went bad. I can't get the data into the table. I am by no means a programmer or a coder, however I do know some things, but the code generated by Muse is ... I have nightmares after it . I checked the code with some on-line tools for errors and double checked all the necessary files and libraries are in their place. I will post the code below if someone could spare some time and help. I need to get the data into the table and apply the CSS.
Here is the link to the page hosted in BC: Wine List
The code:
<!DOCTYPE html>
<html class="html" lang="en-GB">
<head>
<script type="text/javascript">
if (typeof Muse == "undefined") window.Muse = {};
window.Muse.assets = {
"required": ["jquery-1.8.3.min.js", "museutils.js", "jquery.musemenu.js", "jquery.watch.js", "wine-list.css"],
"outOfDate": []
};
</script>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<meta name="generator" content="2015.0.2.310" />
<title>Wine List</title>
<meta name="image-hide-from-external-url" content="true" />
<meta name="image-hide-location" content="true" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="/css/site_global.css?3806542319" />
<link rel="stylesheet" type="text/css" href="/css/master_a-master.css?4026721241" />
<link rel="stylesheet" type="text/css" href="/css/wine-list.css?504376950" id="pagesheet" />
<link rel="stylesheet" type="text/css" href="/css/jquery.dataTables1.css" />
<!-- Other scripts -->
<script type="text/javascript">
document.documentElement.className += ' js';
</script>
<!-- JS includes -->
<!--[if lt IE 9]>
<script src="/scripts/html5shiv.js?4241844378" type="text/javascript"></script>
<![endif]-->
</head>
<body>
<div class="clearfix" id="page">
<!-- column -->
<div class="position_content" id="page_position_content">
<div class="clearfix colelem" id="pu149">
<!-- group -->
<!-- m_editable region-id="editable-static-tag-U149" template="wine-list.html" data-type="html" data-ice-options="clickable" data-ice-editable="link" -->
<div class="pointer_cursor gradient clearfix grpelem" id="u149" data-muse-uid="U149">
<!-- group -->
<a class="block" href="index.html" data-href="page:U74"></a>
<!-- m_editable region-id="editable-static-tag-U475" template="wine-list.html" data-type="image" data-ice-options="clickable" data-ice-editable="link" -->
<a class="nonblock nontext clip_frame clearfix grpelem" id="u475" href="index.html" data-href="page:U74" data-muse-uid="U475" data-muse-type="img_frame">
<!-- image -->
<div id="u475_clip">{module_contentholder, name="_U475"}</div>
</a>
<!-- /m_editable -->
<!-- m_editable region-id="editable-static-tag-U438" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link" -->
<div class="clearfix grpelem" id="u438-4">
<!-- content -->
{module_contentholder, name="_U438"}
</div>
<!-- /m_editable -->
</div>
<!-- /m_editable -->
<!-- m_editable region-id="editable-static-tag-U439" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link" -->
<div class="clearfix grpelem" id="u439-4">
<!-- content -->
{module_contentholder, name="_U439"}
</div>
<!-- /m_editable -->
<!-- m_editable region-id="editable-static-tag-U151" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link" -->
<div class="clearfix grpelem" id="u151-6">
<!-- content -->
{module_contentholder, name="_U151"}
</div>
<!-- /m_editable -->
</div>
<nav class="MenuBar clearfix colelem" id="menuu93">
<!-- horizontal box -->
<div class="MenuItemContainer clearfix grpelem" id="u94">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix colelem" id="u97" href="index.html" data-href="page:U74">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u100-4">
<!-- content -->
<p>Home</p>
</div>
</a>
</div>
<div class="MenuItemContainer clearfix grpelem" id="u290">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix colelem" id="u293" href="news.html" data-href="page:U289">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u294-4">
<!-- content -->
<p>News</p>
</div>
</a>
</div>
<div class="MenuItemContainer clearfix grpelem" id="u170">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix colelem" id="u173" href="about.html" data-href="page:U169">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u176-4">
<!-- content -->
<p>About</p>
</div>
</a>
</div>
<div class="MenuItemContainer clearfix grpelem" id="u190">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix colelem" id="u193" href="en-primeur.html" data-href="page:U189">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u194-4">
<!-- content -->
<p>En Primeur</p>
</div>
<div class="grpelem" id="u196">
<!-- image -->
</div>
</a>
<div class="SubMenu MenuLevel1 clearfix" id="u191">
<!-- vertical box -->
<ul class="SubMenuView clearfix colelem" id="u192">
<!-- vertical box -->
<li class="MenuItemContainer clearfix colelem" id="u1953">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u1954" href="about-en-primeur.html" data-href="page:U1952">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u1956-4">
<!-- content -->
<p>About En Primeur</p>
</div>
</a>
</li>
<li class="MenuItemContainer clearfix colelem" id="u2001">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2002" href="bordeaux-reports.html" data-href="page:U2000">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2003-4">
<!-- content -->
<p>Bordeaux Reports</p>
</div>
<div class="grpelem" id="u2004">
<!-- image -->
</div>
</a>
<div class="SubMenu MenuLevel2 clearfix" id="u2006">
<!-- vertical box -->
<ul class="SubMenuView clearfix colelem" id="u2007">
<!-- vertical box -->
<li class="MenuItemContainer clearfix colelem" id="u2046">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2047" href="2012.html" data-href="page:U2045">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2049-4">
<!-- content -->
<p>2012</p>
</div>
<div class="grpelem" id="u2050">
<!-- image -->
</div>
</a>
<div class="SubMenu MenuLevel2 clearfix" id="u2051">
<!-- vertical box -->
<ul class="SubMenuView clearfix colelem" id="u2052">
<!-- vertical box -->
<li class="MenuItemContainer clearfix colelem" id="u2476">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2477" href="right-bank.html" data-href="page:U2475">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2479-4">
<!-- content -->
<p>Right Bank</p>
</div>
</a>
</li>
<li class="MenuItemContainer clearfix colelem" id="u2556">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2557" href="left-bank.html" data-href="page:U2555">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2559-4">
<!-- content -->
<p>Left Bank</p>
</div>
</a>
</li>
<li class="MenuItemContainer clearfix colelem" id="u2637">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2638" href="weather-report.html" data-href="page:U2636">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2641-4">
<!-- content -->
<p>Weather Report</p>
</div>
</a>
</li>
</ul>
</div>
</li>
<li class="MenuItemContainer clearfix colelem" id="u2096">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2097" href="2014.html" data-href="page:U2095">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2098-4">
<!-- content -->
<p>2014</p>
</div>
<div class="grpelem" id="u2099">
<!-- image -->
</div>
</a>
<div class="SubMenu MenuLevel2 clearfix" id="u2101">
<!-- vertical box -->
<ul class="SubMenuView clearfix colelem" id="u2102">
<!-- vertical box -->
<li class="MenuItemContainer clearfix colelem" id="u2722">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2723" href="wines.html" data-href="page:U2721">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2725-4">
<!-- content -->
<p>Wines</p>
</div>
</a>
</li>
</ul>
</div>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
<div class="MenuItemContainer clearfix grpelem" id="u210">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix colelem" id="u213" href="services.html" data-href="page:U209">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u215-4">
<!-- content -->
<p>Services</p>
</div>
<div class="grpelem" id="u216">
<!-- image -->
</div>
</a>
<div class="SubMenu MenuLevel1 clearfix" id="u211">
<!-- vertical box -->
<ul class="SubMenuView clearfix colelem" id="u212">
<!-- vertical box -->
<li class="MenuItemContainer clearfix colelem" id="u725">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix grpelem" id="u726" href="cellar-management.html" data-href="page:U724">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u728-4">
<!-- content -->
<p>Cellar Management</p>
</div>
</a>
</li>
<li class="MenuItemContainer clearfix colelem" id="u2944">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix grpelem" id="u2947" href="selling-to-us.html" data-href="page:U2943">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2949-4">
<!-- content -->
<p>Selling to Us</p>
</div>
</a>
</li>
<li class="MenuItemContainer clearfix colelem" id="u1287">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix grpelem" id="u1290" href="buying-and-selling.html" data-href="page:U1286">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u1292-4">
<!-- content -->
<p>Buying and Selling</p>
</div>
</a>
</li>
<li class="MenuItemContainer clearfix colelem" id="u2879">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix grpelem" id="u2880" href="ordering-and-wine-sourcing.html" data-href="page:U2878">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2881-4">
<!-- content -->
<p>Ordering and Wine Sourcing</p>
</div>
</a>
</li>
<li class="MenuItemContainer clearfix colelem" id="u2814">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix grpelem" id="u2815" href="invoicing%2c-payment-and-delivery.html" data-href="page:U2813">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2816-4">
<!-- content -->
<p>Invoicing, Payment and Delivery</p>
</div>
</a>
</li>
</ul>
</div>
</div>
<div class="MenuItemContainer clearfix grpelem" id="u230">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu MuseMenuActive gradient clearfix colelem" id="u233" href="wine-list.html" data-href="page:U229">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u236-4">
<!-- content -->
<p>Wine List</p>
</div>
</a>
</div>
<div class="MenuItemContainer clearfix grpelem" id="u270">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix colelem" id="u271" href="contact-us.html" data-href="page:U269">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u273-4">
<!-- content -->
<p>Contact Us</p>
</div>
</a>
</div>
<div class="MenuItemContainer clearfix grpelem" id="u250">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix colelem" id="u251" href="career.html" data-href="page:U249">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u253-4">
<!-- content -->
<p>Career</p>
</div>
</a>
</div>
<div class="MenuItemContainer clearfix grpelem" id="u310">
<!-- vertical box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu gradient clearfix colelem" id="u313" href="legal.html" data-href="page:U309">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u314-4">
<!-- content -->
<p>Legal</p>
</div>
<div class="grpelem" id="u316">
<!-- image -->
</div>
</a>
<div class="SubMenu MenuLevel1 clearfix" id="u311">
<!-- vertical box -->
<ul class="SubMenuView clearfix colelem" id="u312">
<!-- vertical box -->
<li class="MenuItemContainer clearfix colelem" id="u2242">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2243" href="terms-of-use.html" data-href="page:U2241">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2245-4">
<!-- content -->
<p>Terms of Use</p>
</div>
</a>
</li>
<li class="MenuItemContainer clearfix colelem" id="u2282">
<!-- horizontal box -->
<a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u2285" href="privacy-policy.html" data-href="page:U2281">
<!-- horizontal box -->
<div class="MenuItemLabel NoWrap clearfix grpelem" id="u2288-4">
<!-- content -->
<p>Privacy Policy</p>
</div>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="clearfix colelem" id="ppbuttonu3093">
<!-- group -->
<div class="clearfix grpelem" id="pbuttonu3093">
<!-- column -->
<!-- m_editable region-id="editable-static-tag-U3093" template="wine-list.html" data-type="html" data-ice-options="clickable" data-ice-editable="link" -->
<a class="nonblock nontext Button ButtonSelected shadow rounded-corners gradient clearfix colelem" id="buttonu3093" href="wine-list.html" data-href="page:U229"
data-muse-uid="U3093">
<!-- container box --><img class="grpelem" id="u3094" alt="Wine Search" src="/images/blank.gif" />
<!-- state-based BG images -->
</a>
<!-- /m_editable -->
<div class="gradient clearfix colelem" id="u1425">
<!-- group -->
<nav class="MenuBar clearfix grpelem" id="menuu109">
<!-- vertical box -->
<div class="MenuItemContainer clearfix colelem" id="u117">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u118">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U121" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u121-4">
<!-- content -->
{module_contentholder, name="_U121"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u415">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u416">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U418" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u418-4">
<!-- content -->
{module_contentholder, name="_U418"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u401">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u402">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U404" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u404-4">
<!-- content -->
{module_contentholder, name="_U404"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u1108">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u1111">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U1114" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u1114-4">
<!-- content -->
{module_contentholder, name="_U1114"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u1115">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u1116">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U1117" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u1117-4">
<!-- content -->
{module_contentholder, name="_U1117"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u1122">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u1125">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U1126" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u1126-4">
<!-- content -->
{module_contentholder, name="_U1126"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u1129">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u1130">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U1132" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u1132-4">
<!-- content -->
{module_contentholder, name="_U1132"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u1136">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u1139">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U1142" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u1142-4">
<!-- content -->
{module_contentholder, name="_U1142"}
</div>
<!-- /m_editable -->
</div>
</div>
</nav>
</div>
<!-- m_editable region-id="editable-static-tag-U2368" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link" -->
<div class="clearfix colelem" id="u2368-4">
<!-- content -->
{module_contentholder, name="_U2368"}
</div>
<!-- /m_editable -->
<div class="gradient clearfix colelem" id="u1426">
<!-- group -->
<nav class="MenuBar clearfix grpelem" id="menuu653">
<!-- vertical box -->
<div class="MenuItemContainer clearfix colelem" id="u654">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u655">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U658" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u658-4">
<!-- content -->
{module_contentholder, name="_U658"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u661">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u664">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U665" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u665-4">
<!-- content -->
{module_contentholder, name="_U665"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u668">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u669">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U672" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u672-4">
<!-- content -->
{module_contentholder, name="_U672"}
</div>
<!-- /m_editable -->
</div>
</div>
<div class="MenuItemContainer clearfix colelem" id="u689">
<!-- horizontal box -->
<div class="MenuItem MenuItemWithSubMenu clearfix grpelem" id="u690">
<!-- horizontal box -->
<!-- m_editable region-id="editable-static-tag-U693" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link,clickable" -->
<div class="MenuItemLabel clearfix grpelem" id="u693-4">
<!-- content -->
{module_contentholder, name="_U693"}
</div>
<!-- /m_editable -->
</div>
</div>
</nav>
</div>
</div>
<div class="clearfix grpelem" id="ppu3117-9">
<!-- column -->
<div class="clearfix colelem" id="pu3117-9">
<!-- group -->
<!-- m_editable region-id="editable-static-tag-U3117" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link" -->
<div class="clearfix grpelem" id="u3117-9" data-muse-uid="U3117" data-muse-type="txt_frame">
<!-- content -->
<p id="u3117-2">Wine List</p>
<p> </p>
<p> </p>
<p> </p>
<p id="u3117-7"><span id="u3117-6">Please enter the keyword to search for wine</span>
</p>
</div>
<!-- /m_editable -->
<div class="clearfix grpelem" id="pu1368">
<!-- column -->
<!-- m_editable region-id="editable-static-tag-U1368" template="wine-list.html" data-type="image" -->
<div class="clip_frame colelem" id="u1368" data-muse-uid="U1368" data-muse-type="img_frame">
<!-- image -->
{module_contentholder, name="_U1368"}
</div>
<!-- /m_editable -->
<!-- m_editable region-id="editable-static-tag-U1370" template="wine-list.html" data-type="image" -->
<div class="clip_frame colelem" id="u1370" data-muse-uid="U1370" data-muse-type="img_frame">
<!-- image -->
{module_contentholder, name="_U1370"}
</div>
<!-- /m_editable -->
</div>
</div>
<!-- m_editable region-id="editable-static-tag-U2435" template="wine-list.html" data-type="image" -->
<div class="clip_frame colelem" id="u2435" data-muse-uid="U2435" data-muse-type="img_frame">
<!-- image -->
{module_contentholder, name="_U2435"}
</div>
<!-- /m_editable -->
<div class="clearfix colelem" id="pu1923">
<!-- group -->
<div class="grpelem" id="u1923">
<table id="datatable-wines" style="display: inline-block;">
<thead>
<tr>
<td>Colour</td>
<td>Name</td>
<td>Vintage</td>
<td>Country</td>
<td>Price</td>
<td>Per</td>
<td>Cases available</td>
<td>Bottle available</td>
</tr>
</thead>
<tbody>
{module_webapps,26740,a,,,,false,500,false,1}
</tbody>
</table>
</div>
<!-- m_editable region-id="editable-static-tag-U1366" template="wine-list.html" data-type="image" -->
<div class="clip_frame grpelem" id="u1366" data-muse-uid="U1366" data-muse-type="img_frame">
<!-- image -->
{module_contentholder, name="_U1366"}
</div>
<!-- /m_editable -->
</div>
</div>
</div>
<div class="verticalspacer"></div>
<div class="clearfix colelem" id="u2604">
<!-- group -->
<!-- m_editable region-id="editable-static-tag-U2209" template="wine-list.html" data-type="html" data-ice-options="disableImageResize,link" -->
<div class="clearfix grpelem" id="u2209-4">
<!-- content -->
{module_contentholder, name="_U2209"}
</div>
<!-- /m_editable -->
</div>
</div>
</div>
<div class="preload_images">
<img class="preload" src="/images/u3094-r.png" alt="" />
<!--[if lt IE 9]>
<img class="preload" src="/images/u97-r-grad.png" alt=""/>
<img class="preload" src="/images/u97-m-grad.png" alt=""/>
<img class="preload" src="/images/u726-r-grad.png" alt=""/>
<img class="preload" src="/images/u726-a-grad.png" alt=""/>
<img class="preload" src="/images/u1290-r-grad.png" alt=""/>
<img class="preload" src="/images/u1290-a-grad.png" alt=""/>
<![endif]-->
</div>
<!-- JS includes -->
<script type="text/javascript">
if (document.location.protocol != 'https:') document.write(
'\x3Cscript src="http://musecdn1.businesscatalyst.com/scripts/4.0/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
</script>
<script type="text/javascript">
window.jQuery || document.write('\x3Cscript src="/scripts/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
</script>
<script type="text/javascript" src="/js/jquery.dataTables.js"></script>
<script type="text/javascript">
$("#datatable-wines").css("display", "none");
$(document).ready(function() {
$(".pagination").hide();
$("#datatable-wines").DataTable();
$("#datatable-wines").css("display", "inline-block");
$("#datatable-wines_filter input").css("border", "1px solid silver");
});
</script>
<script src="/scripts/museutils.js?4098652165" type="text/javascript"></script>
<script src="/scripts/jquery.musemenu.js?4042164668" type="text/javascript"></script>
<script src="/scripts/jquery.watch.js?3999102769" type="text/javascript"></script>
<!-- Other scripts -->
<script type="text/javascript">
$(document).ready(function() {
try {
(function() {
var a = {},
b = function(a) {
if (a.match(/^rgb/)) return a = a.replace(/\s+/g, "").match(/([\d\,]+)/gi)[0].split(","), (parseInt(a[0]) <<
16) + (parseInt(a[1]) << 8) + parseInt(a[2]);
if (a.match(/^\#/)) return parseInt(a.substr(1), 16);
return 0
};
(function() {
$('link[type="text/css"]').each(function() {
var b = ($(this).attr("href") || "").match(/\/?css\/([\w\-]+\.css)\?(\d+)/);
b && b[1] && b[2] && (a[b[1]] = b[2])
})
})();
(function() {
$("body").append('<div class="version" style="display:none; width:1px; height:1px;"></div>');
for (var c = $(".version"), d = 0; d < Muse.assets.required.length;) {
var f = Muse.assets.required
g = f.match(/([\w\-\.]+)\.(\w+)$/),
k = g && g[1] ? g[1] : null,
g = g && g[2] ? g[2] : null;
switch (g.toLowerCase()) {
case "css":
k = k.replace(/\W/gi, "_").replace(/^([^a-z])/gi, "_$1");
c.addClass(k);
var g = b(c.css("color")),
h = b(c.css("background-color"));
g != 0 || h != 0 ? (Muse.assets.required.splice(d, 1), "undefined" != typeof a
f] >>> 24 || h != (a
c.removeClass(k);
break;
case "js":
k.match(/^jquery-[\d\.]+/gi) &&
typeof $ != "undefined" ? Muse.assets.required.splice(d, 1) : d++;
break;
default:
throw Error("Unsupported file type: " + g);
}
}
c.remove();
if (Muse.assets.outOfDate.length || Muse.assets.required.length) c =
"Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.", (
d = location && location.search && location.search.match && location.search.match(/muse_debug/gi)
) && Muse.assets.outOfDate.length && (c += "\nOut of date: " + Muse.assets.outOfDate.join(",")), d &&
Muse.assets.required.length && (c += "\nMissing: " + Muse.assets.required.join(",")), alert(c)
})()
})();
/* body */
Muse.Utils.transformMarkupToFixBrowserProblemsPreInit(); /* body */
Muse.Utils.prepHyperlinks(true); /* body */
Muse.Utils.initWidget('.MenuBar', function(elem) {
return $(elem).museMenu();
}); /* unifiedNavBar */
Muse.Utils.fullPage('#page'); /* 100% height page */
Muse.Utils.showWidgetsWhenReady(); /* body */
Muse.Utils.transformMarkupToFixBrowserProblems(); /* body */
} catch (e) {
if (e && 'function' == typeof e.notify) e.notify();
else Muse.Assert.fail('Error calling selector function:' + e);
}
});
</script>
</body>
</html>
Thank you.
Hi there,
At a first glance I can see that the way you are outputting the wine list (webapp list layout found in Site Manager -> Module Templates -> Web App Layouts -> list) is not really in the format that DataTables is expecting.
If your going with HTML (DOM) sourced data as exemplified in the DataTables docs, then the HTML should have a regular table format (HTML table tag)
So instead of having something like this:
...<div>{tag_colour}{tag_name}{tag_vintage}{tag_country}{tag_price}{tag_per}{tag_cas
Copy link to clipboard
Copied
Hi there,
At a first glance I can see that the way you are outputting the wine list (webapp list layout found in Site Manager -> Module Templates -> Web App Layouts -> list) is not really in the format that DataTables is expecting.
If your going with HTML (DOM) sourced data as exemplified in the DataTables docs, then the HTML should have a regular table format (HTML table tag)
So instead of having something like this:
<div>{tag_colour}{tag_name}{tag_vintage}{tag_country}{tag_price}{tag_per}{tag_cases available}{tag_bottles available}<br />
</div>
you should change it into something like this:
<tr>
<td>{tag_colour}</td>
<td>{tag_name}</td>
<td>{tag_vintage}</td>
<td>{tag_country}</td>
<td>{tag_price}</td>
<td>{tag_per}</td>
<td>{tag_cases available}</td>
<td>{tag_bottles available}</td>
</tr>
Oh, and by the way, the {module_webapps} should be like this:
<table id="datatable-wines" style="display: inline-block;">
<thead>
<tr>
<td>Colour</td>
<td>Name</td>
<td>Vintage</td>
<td>Country</td>
<td>Price</td>
<td>Per</td>
<td>Cases available</td>
<td>Bottle available</td>
</tr>
</thead>
<tbody>
{module_webapps}
</tbody>
</table>
Give it a try and let me know.
M.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now