Visual Studio 2012+jquery-1.7.1

Source: Internet
Author: User
Tags load net

Today, a Web site project was developed with Visual Studio 2012, and when the Jqplot Chart control is integrated and debugged (using the MVC4 framework), the page is loaded with an error when drawing the chart (prompting $.jqplot.barrender undefined).

Viewed for a long time the Jqplot control did not find any coding errors, and finally found that the extension was not jqplot in the page after the load net. I wondered if it was somewhere that covered the jquery code I expanded before. The HTML code in the Web page is copied and found at the end of the page, Vistual Studio 2012 automatically reintroduced the jQuery-1.7.1. The problem is that this auto-introduced jquery overwrites my previous extension code for jquery. Drawing a chart during the run is a hint of undefined error.

WORKAROUND: Delete the jquery file under the Vistual Studio project and manually introduce jquery to the specified location when needed in the program. Vistual Studio will not automatically add jquery at the end of the HTML file. It will not overwrite your extension code for jquery.

In this, have to sigh, Microsoft's developers sometimes do a bit too much, "wishful thinking" to do not need to do things to do, to bring some trouble to developers, at least in the process of finding the cause of the need to spend a certain amount of time and energy!

Visual Studio 2012+jquery-1.7.1

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.