Note that there are some explanatory texts on larger screens.

plurals
  1. POjtable refrences are not loading with MVC 4 asp.net
    text
    copied!<p>I am not able to understand the error of jquery because of being a newbie.</p> <p>I am getting this error</p> <blockquote> <p>" $ is not defined" when i don't add the references of my jquery and jquery ui libraries <br> And when i add the references of jquery and jquery -ui i get another error like "read is not defined" in the jtable.site.js and jquery.jtable.js</p> </blockquote> <p>So i am sharing my layout file and also the bundles file .Can any one check this out what the problem is Here is My Layout file</p> <pre><code>&lt;!DOCTYPE html&gt; @{ var jTableStyle = "metro/red/jtable.css"; if (!string.IsNullOrEmpty(Request["jTableStyle"])) { jTableStyle = Request["jTableStyle"]; } } &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;title&gt;@ViewBag.Title - myEMR Application&lt;/title&gt; &lt;link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /&gt; &lt;meta name="viewport" content="width=device-width" /&gt; &lt;script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"&gt;&lt;/script&gt; &lt;script src="@Url.Content("~/Scripts/jquery-ui-1.8.20.min.js")"&gt;&lt;/script&gt; @Styles.Render("~/Content/css") @Scripts.Render("~/bundles/modernizr") &lt;link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /&gt; &lt;link href="@Url.Content("~/Content/themes/redmond/jquery-ui-1.8.16.custom.css")" rel="stylesheet" type="text/css" /&gt; &lt;link href="@Url.Content("~/Content/highlight.css")" rel="stylesheet" type="text/css" /&gt; &lt;link href="@Url.Content("~/Scripts/jtable/themes/" + jTableStyle)" rel="stylesheet" type="text/css" /&gt; &lt;link href="@Url.Content("~/Scripts/syntaxhighligher/styles/shCore.css")" rel="stylesheet" type="text/css" /&gt; &lt;link href="@Url.Content("~/Scripts/syntaxhighligher/styles/shThemeDefault.css")" rel="stylesheet" type="text/css" /&gt; @RenderSection("CssImport", false) &lt;script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="@Url.Content("~/Scripts/syntaxhighligher/shCore.js")" &lt; type="text/javascript"&gt;&lt;/script&gt; &lt;script src="@Url.Content("~/Scripts/syntaxhighligher/shBrushJScript.js")" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="@Url.Content("~/Scripts/syntaxhighligher/shBrushXml.js")" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="@Url.Content("~/Scripts/syntaxhighligher/shBrushCSharp.js")" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="@Url.Content("~/Scripts/syntaxhighligher/shBrushSql.js")" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="@Url.Content("~/Scripts/jtablesite.js")"type="text/javascript"&gt; &lt;/script&gt; &lt;script type="text/javascript" src="@Url.Content("~/Scripts/jtable /jquery.jtable.js")"&gt;&lt;/script&gt; @RenderSection("JavascriptImport", false) &lt;div id="body"&gt; @RenderSection("featured", required: false) &lt;section class="content-wrapper main-content clear-fix"&gt; @RenderBody() &lt;/section&gt; @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/jqueryui") @RenderSection("scripts", required: false) </code></pre> <p><br> And my bundles file</p> <pre><code> public class BundleConfig { // For more information on Bundling, visit http://go.microsoft.com/fwlink /?LinkId=254725 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include( "~/Scripts/jquery-ui-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*")); // Use the development version of Modernizr to develop with and learn from. Then, when you're // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css")); } </code></pre> <p>And snap shot of script directory <img src="https://i.stack.imgur.com/X4uAP.png" alt="enter image description here"></p> <p>And my detailed directory <img src="https://i.stack.imgur.com/rhl2F.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload