jquery ui css not loading and creating poblems with asp.net mvc3 page (unexpected token error)
Posted
by
giddy
on Stack Overflow
See other posts from Stack Overflow
or by giddy
Published on 2010-12-29T15:50:44Z
Indexed on
2010/12/29
15:54 UTC
Read the original article
Hit count: 289
hi,
So I suspect Im doing something silly, but first off, I can see that my mvc3 project already had jquery ui in it but no theme css files.
I needed a date picked and as usual needed to override the EditorFor DateTime. I started off today by just using the default jquery ui js files supplied with the project under scripts. The date picker shows up fine, only with a completed messed up UI based on Site.css.
So now I downloaded a build of jquery (with the start theme) and followed this page about how to put it together.
Im using T4MVC so my page looks like this:
Layout.cshtml :
<script src="@Links.Scripts.jquery_1_4_4_js" type="text/javascript"></script>
<link href="@Links.Content.Site_css" rel="stylesheet" type="text/css" />
<script src="@Links.Content.start.jquery_ui_1_8_7_custom_css" type="text/javascript"></script>
Create.cshtml
<script src="@Links.Scripts.jquery_validate_min_js" type="text/javascript"></script>
<script src="@Links.Scripts.jquery_validate_unobtrusive_min_js" type="text/javascript"></script>
<script src="@Links.Scripts.jquery_ui_1_8_7_custom_min_js" type="text/javascript"></script>
And this is the result:
Any ideas, Ive been googleing for a while now, I tried a couple combinations of where I put the script and css files tags in different places, but nothing seems to work.
© Stack Overflow or respective owner