I just migrated the project to the beta version of the ASP.net MVC frame, and the only problem I encountered was jQuery and jQueryUI .
Here's the deal:
The following script links are provided in Site.Master :
<script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"></script> <script src="../../Scripts/jquery-ui.js" type="text/javascript"></script>
And using those accordian UI that I have on one of the views work fine, except for one problem: images from ThemeRoller not included on the page. If I comment on jQuery links, there are ThemeRoller images. All css are in the Content folder , and all scripts are in the Scripts folder .
I know this is a dumb way problem, but it makes me nervous.
What am I missing?
Update
I tried the first answer to no avail, read the comment for details. Thanks again to those who watch.
The second approach does not work either. I am puzzled.
Another update
Using Url.Content tags for scripts really allows scripts to work correctly. Using a regular tag for a style sheet gets all the styles on the EXCEPT page for all those related to ThemeRoller.
The jquery-ui-themeroller.css is located in the "Content" folder, and when I check the element, css is present. I suspect the problem is with the display of this css file in the image folder for themeroller, which is also located in the "Content" folder. Link images in this file as indicated: background: url(images/foo.gif)
Do I need to change the links in this file?
jquery jquery-ui path asp.net-mvc jquery-ui-theme
Kevdog
source share